Struct pipewire_sys::pw_buffer
source · #[repr(C)]pub struct pw_buffer {
pub buffer: *mut spa_buffer,
pub user_data: *mut c_void,
pub size: u64,
pub requested: u64,
}
Expand description
a buffer structure obtained from pw_stream_dequeue_buffer(). The size of this structure can grow as more field are added in the future
Fields§
§buffer: *mut spa_buffer
< the spa buffer
user_data: *mut c_void
< user data attached to the buffer
size: u64
< This field is set by the user and the sum of all queued buffer is returned in the time info. For audio, it is advised to use the number of samples in the buffer for this field.
requested: u64
< For playback streams, this field contains the suggested amount of data to provide. For audio streams this will be the amount of samples required by the resampler. This field is 0 when no suggestion is provided. Since 0.3.49
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for pw_buffer
impl !Send for pw_buffer
impl !Sync for pw_buffer
impl Unpin for pw_buffer
impl UnwindSafe for pw_buffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more