#[repr(C)]pub struct AudioFilePacketTableInfo {
pub mNumberValidFrames: i64,
pub mPrimingFrames: i32,
pub mRemainderFrames: i32,
}
AudioFile
only.Expand description
This contains information about the number of valid frames in a file and where they begin and end.
Some data formats may have packets whose contents are not completely valid, but represent priming or remainder frames that are not meant to be played. For example a file with 100 packets of AAC is nominally 1024 * 100 = 102400 frames of data. However the first 2112 frames of that may be priming frames and there may be some number of remainder frames added to pad out to a full packet of 1024 frames. The priming and remainder frames should be discarded. The total number of packets in the file times the frames per packet (or counting each packet’s frames individually for a variable frames per packet format) minus mPrimingFrames, minus mRemainderFrames, should equal mNumberValidFrames.
See also Apple’s documentation
Fields§
§mNumberValidFrames: i64
§mPrimingFrames: i32
§mRemainderFrames: i32
Trait Implementations§
Source§impl Clone for AudioFilePacketTableInfo
impl Clone for AudioFilePacketTableInfo
Source§fn clone(&self) -> AudioFilePacketTableInfo
fn clone(&self) -> AudioFilePacketTableInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more