AudioConverter and unpacked data steams
AudioConverter and unpacked data steams
- Subject: AudioConverter and unpacked data steams
- From: patrick machielse <email@hidden>
- Date: Thu, 06 Sep 2012 23:06:32 +0200
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. Is there any way to find this information in the documentation, or is there API that could answer this?
AudioFormatGetProperty() can get me a list of supported encode / decode formatIDs, but obviously 1819304813 (lpcm) is supported. I need to know which flags are supported with this IDs…
Thanks,
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