Re: AudioFileStream not returning PacketSizeUpperBound
Re: AudioFileStream not returning PacketSizeUpperBound
- Subject: Re: AudioFileStream not returning PacketSizeUpperBound
- From: William Stewart <email@hidden>
- Date: Mon, 18 Feb 2008 14:15:34 -0800
Sorry, my bad:
@constant kAudioConverterPropertyMaximumInputPacketSize
a UInt32 that indicates the size in bytes of the largest single
packet of
data in the input format. This is mostly useful for variable bit
rate
compressed data (decoders).
@constant kAudioConverterPropertyMaximumOutputPacketSize
a UInt32 that indicates the size in bytes of the largest single
packet of
data in the output format. This is mostly useful for variable bit
rate
compressed data (encoders).
They are converter properties, not format ones. You can pass these
through the AudioQueue API as well (it goes and asks the underlying
converter for you)
Bill
On Feb 15, 2008, at 10:09 PM, Jens Alfke wrote:
On 15 Feb '08, at 7:02 PM, William Stewart wrote:
For what you need to know, the AudioFormat API is in any case the
right place to get this information. It has an upper bound packet
size property for any given format.
I looked through <AudioToolbox/AudioFormat.h>, but I don't see any
property that explicitly returns packet sizes. There are FormatIsVBR
and FormatIsExternallyFramed properties, but those just return
booleans. Which property do you have in mind?
—Jens
_______________________________________________
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