#[repr(C)]pub struct AudioQueueBuffer {
pub mAudioDataBytesCapacity: u32,
pub mAudioData: NonNull<c_void>,
pub mAudioDataByteSize: u32,
pub mUserData: *mut c_void,
pub mPacketDescriptionCapacity: u32,
pub mPacketDescriptions: *const AudioStreamPacketDescription,
pub mPacketDescriptionCount: u32,
}
AudioQueue
and objc2-core-audio-types
only.Expand description
Defines a buffer of audio data to be managed by an audio queue.
Each audio queue has an associated set of audio queue buffers. You can request that a queue allocate buffers using the AudioQueueAllocateBuffer function and dispose of them using the AudioQueueFreeBuffer function.
You may also use AudioQueueAllocateBufferWithPacketDescriptions to allocate buffers with space for AudioPacketDescriptions, as used in VBR formats. The mPacketDescriptionCapacity, mmPacketDescriptions, and mPacketDescriptionCount fields may only be used with buffers allocated with this function.
The size of the buffer, in bytes. This size is set when the buffer is allocated and cannot be changed.
A pointer to the audio data in the buffer. Although you can write data to this buffer, you cannot make it point to another address.
The number of bytes of valid audio data in the buffer. You set this value when providing data for playback; the audio queue sets this value when recording data from a recording queue.
A value you may specify to identify the buffer when it is passed back in recording or playback callback functions.
The maximum number of packet descriptions that can be stored in mPacketDescriptions.
An array of AudioStreamPacketDescriptions associated with the buffer.
The number of valid packet descriptions in the buffer. You set this value when providing buffers for playback; the audio queue sets this value when returning buffers from a recording queue.
See also Apple’s documentation
Fields§
§mAudioDataBytesCapacity: u32
§mAudioData: NonNull<c_void>
§mAudioDataByteSize: u32
§mUserData: *mut c_void
§mPacketDescriptionCapacity: u32
§mPacketDescriptions: *const AudioStreamPacketDescription
§mPacketDescriptionCount: u32
Trait Implementations§
Source§impl Clone for AudioQueueBuffer
impl Clone for AudioQueueBuffer
Source§fn clone(&self) -> AudioQueueBuffer
fn clone(&self) -> AudioQueueBuffer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more