ImpulseResponse

Struct ImpulseResponse 

Source
pub struct ImpulseResponse { /* private fields */ }

Implementations§

Source§

impl ImpulseResponse

Source

pub fn new(data: &[c_short]) -> &Self

Source

pub fn channel_count(&self) -> c_short

Source

pub fn data(&self) -> &[c_short]

Source

pub unsafe fn from_sound(sound: Sound) -> Result<Box<Self>>

§Safety

This function uses Sound::read_data, which is unsafe if Sound::release is called from another thread while Sound::read_data is processing.

Trait Implementations§

Source§

impl Debug for ImpulseResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ReadableParameter for Box<ImpulseResponse>

Source§

fn get_parameter(dsp: Dsp, index: c_int) -> Result<Self>

Get the parameter at index.
Source§

fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>

Get the parameter string at index.
Source§

impl WritableParameter for &ImpulseResponse

Source§

fn set_parameter(self, dsp: Dsp, index: c_int) -> Result<()>

Set the parameter at index.
Source§

impl WritableParameterIndex<&ImpulseResponse> for IR

Source§

const TYPE: DspType = DspType::ConvolutionReverb

What type of DSP this index is for.
Source§

fn into_index(self) -> c_int

Convert self into a DSP index.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more