Bytes Per Packet, Frames Per Packet?
Bytes Per Packet, Frames Per Packet?
- Subject: Bytes Per Packet, Frames Per Packet?
- From: Kyle Sluder <email@hidden>
- Date: Fri, 6 Mar 2009 02:07:13 -0500
Hi all,
Sorry for the newbie question, but I'm just getting started with
AudioQueue. I'm trying to figure out just what is implied by
mBytesPerPacket == 0, and separately mFramesPerPacket == 0. The
documentation and header file comments aren't an introduction to audio
file formats, so they tend not to provide enough information for me to
grasp all of what's going on.
I need to be able to create buffers for the AudioQueue that total a
certain duration. Most apps, like Pro Tools, have the user specify
the buffer duration in bytes, but for my app time makes more sense.
For CBR formats this is easy, but for situations where mBytesPerPacket
== 0 or mFramesPerPacket == 0 I'm a bit more confused, which is why
I'm asking.
If anyone can point me towards an explanation of the implications of
variable frames-per-packet or bytes-per-packet, I'd appreciate it.
Thanks,
--Kyle Sluder
_______________________________________________
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