pub struct ImpulseResponse { /* private fields */ }
Implementations§
Source§impl ImpulseResponse
impl ImpulseResponse
pub fn new(data: &[c_short]) -> &Self
pub fn channel_count(&self) -> c_short
pub fn data(&self) -> &[c_short] ⓘ
Sourcepub unsafe fn from_sound(sound: Sound) -> Result<Box<Self>>
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
impl Debug for ImpulseResponse
Source§impl ReadableParameter for Box<ImpulseResponse>
impl ReadableParameter for Box<ImpulseResponse>
Source§fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
Get the parameter string at
index
.