pub struct AudioOutputPort { /* private fields */ }Expand description
Wrapper for raw audio output lists.
Implementations§
Source§impl AudioOutputPort
impl AudioOutputPort
Sourcepub fn connect(&mut self, raw: *mut f32)
pub fn connect(&mut self, raw: *mut f32)
Set the internal data pointer.
This function should only be called by a plugin’s connect_port function.
Sourcepub unsafe fn as_slice(&mut self, n_samples: u32) -> Option<&mut [f32]>
pub unsafe fn as_slice(&mut self, n_samples: u32) -> Option<&mut [f32]>
Try to create a mutable slice of the audio data with the given length.
This function is unsafe since invalid slices can be created by passing an invalid sample
count. Therefore, only a plugin’s run function should use this function and must pass
the sample count it receives from the host.
Auto Trait Implementations§
impl Freeze for AudioOutputPort
impl RefUnwindSafe for AudioOutputPort
impl !Send for AudioOutputPort
impl !Sync for AudioOutputPort
impl Unpin for AudioOutputPort
impl UnwindSafe for AudioOutputPort
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