Re: Combining AUHAL input and an AudioConverter
Re: Combining AUHAL input and an AudioConverter
- Subject: Re: Combining AUHAL input and an AudioConverter
- From: Heath Raftery <email@hidden>
- Date: Wed, 11 May 2005 05:23:02 +1000
On 11/05/2005, at 3:42 AM, Greg Chapman wrote:
On May 10, 2005, at 10:23 AM, Heath Raftery wrote:
What this does is fills out the rest of the ASBD based on the format.
Alas, it still does not :(
<CONSOLE>
AudioStreamBasicDescription: 0 ch, 48000 Hz, 'Qclp' (0x00000000) 0
bits/channel, 0 bytes/packet, 0 frames/packet, 0 bytes/frame
</CONSOLE>
I don't think kAudioFormatProperty_FormatInfo will work unless you
fill in the number of channels.
Holy critical observation batman!
<CONSOLE>
AudioStreamBasicDescription: 1 ch, 11025 Hz, 'Qclp' (0x00000000) 0
bits/channel, 35 bytes/packet, 160 frames/packet, 0 bytes/frame
</CONSOLE>
I don't get bytes/frame, bits/channel or flags, but it's certainly
progress! In fact, in the example above, doesn't bytes/frame have to be
35/160 = 0.21875 bytes/frame? = 1.75bits/frame? Huh?
Incidentally doubling the number of channels doubles the bytes/packet
only. Different sample rates didn't change anything but needed to be
non-zero.
Taking the code comments' advice, I'll assume the zero fields can be
ignored. Putting all this back into the original application I was
having trouble with that started this thread, I get the same bad access
exception I did originally. I'll work on it and see if I can get any
further, but thank you for the assistance so far!
Regards,
Heath
_______________________________________________
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