• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AudioConverter and unpacked data steams
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverter and unpacked data steams


  • Subject: Re: AudioConverter and unpacked data steams
  • From: patrick machielse <email@hidden>
  • Date: Wed, 12 Sep 2012 17:53:45 +0200

Op 6 sep. 2012, om 23:06 heeft patrick machielse <email@hidden> het volgende geschreven:

> I'm using AudioConverter to convert an non-packed, non-interleaved stream of int data (from a FLAC file) to a packed, non-interleaved stream of floats (for an internal buffer).
>
> FLAC stream:
> AudioStreamBasicDescription:
> ----------------------------
>       mSampleRate : 8000.000000
>         mFormatID : 1819304813
>      mFormatFlags : 36
>   mBytesPerPacket : 4
>  mFramesPerPacket : 1
>    mBytesPerFrame : 4
> mChannelsPerFrame : 2
>   mBitsPerChannel : 16
>
> BUFFER stream:
> AudioStreamBasicDescription:
> ----------------------------
>       mSampleRate : 44100.000000
>         mFormatID : 1819304813
>      mFormatFlags : 41
>   mBytesPerPacket : 4
>  mFramesPerPacket : 1
>    mBytesPerFrame : 4
> mChannelsPerFrame : 2
>   mBitsPerChannel : 32
>
> On 10.8 this works nicely. However, on 10.6 the call to AudioConverterNew() using these 2 ASBDs returns 'fmt?'.
>
> My suspicion is that unpacked data streams are not supported on some (all?) pre-10.8 systems.

From testing it seems that non-packed streams started working in OS 10.7. To support earlier systems I'm now pre-processing / packing the stream before handing it over to the AudioConverter object.

p.
--
Patrick Machielse
Hieper Software

http://www.hieper.nl
email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AudioConverter and unpacked data steams (From: patrick machielse <email@hidden>)

  • Prev by Date: Re: Noise Reduction
  • Next by Date: iOS Audio Development
  • Previous by thread: AudioConverter and unpacked data steams
  • Next by thread: iOS: -1500 from AudioServicesCreateSystemSoundID
  • Index(es):
    • Date
    • Thread