[][src]Trait soloud::prelude::AudioExt

pub unsafe trait AudioExt {
    pub fn default() -> Self;
pub fn set_volume(&mut self, volume: f32);
pub fn set_looping(&mut self, flag: bool);
pub fn set_auto_stop(&mut self, flag: bool);
pub fn set_3d_min_max_distance(
        &mut self,
        min_distance: f32,
        max_distance: f32
    );
pub fn set_3d_attenuation(
        &mut self,
        model: AttenuationModel,
        rolloff_factor: f32
    );
pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32);
pub fn set_3d_listener_relative(&mut self, flag: bool);
pub fn set_3d_distance_delay(&mut self, delay: i32);
pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool);
pub fn set_loop_point(&mut self, loop_point: f64);
pub fn loop_point(&self) -> f64;
pub fn set_filter<F: FilterExt>(
        &mut self,
        filter_id: u32,
        filter: Option<&F>
    );
pub fn stop(&mut self);
pub unsafe fn inner(&self) -> *mut *mut c_void; }

Required methods

pub fn default() -> Self[src]

Creates a default initialized object

pub fn set_volume(&mut self, volume: f32)[src]

Sets the volume

pub fn set_looping(&mut self, flag: bool)[src]

Set whether the audio is looping

pub fn set_auto_stop(&mut self, flag: bool)[src]

Set auto stop

pub fn set_3d_min_max_distance(&mut self, min_distance: f32, max_distance: f32)[src]

Set 3D min and max distances

pub fn set_3d_attenuation(
    &mut self,
    model: AttenuationModel,
    rolloff_factor: f32
)
[src]

Set 3D attenuation

pub fn set_3d_doppler_factor(&mut self, doppler_factor: f32)[src]

Set 3D doppler factor

pub fn set_3d_listener_relative(&mut self, flag: bool)[src]

Set 3D listener relative

pub fn set_3d_distance_delay(&mut self, delay: i32)[src]

Set 3D distance delay

pub fn set_inaudible_behavior(&mut self, must_tick: bool, kill: bool)[src]

Set inaudible behavior

pub fn set_loop_point(&mut self, loop_point: f64)[src]

Set a loop point

pub fn loop_point(&self) -> f64[src]

Get the loop point

pub fn set_filter<F: FilterExt>(&mut self, filter_id: u32, filter: Option<&F>)[src]

Set a filter, the filter_id is assigned by the developer and becomes the id for that filter, and to cancel pass None as a filter to the already assigned id

pub fn stop(&mut self)[src]

Stop

pub unsafe fn inner(&self) -> *mut *mut c_void[src]

Get the inner pointer

Safety

The inner pointer should be modified with care!

Loading content...

Implementors

impl AudioExt for Ay[src]

impl AudioExt for Bus[src]

impl AudioExt for Monotone[src]

impl AudioExt for Noise[src]

impl AudioExt for Openmpt[src]

impl AudioExt for Queue[src]

impl AudioExt for Sfxr[src]

impl AudioExt for Speech[src]

impl AudioExt for TedSid[src]

impl AudioExt for Vic[src]

impl AudioExt for Vizsn[src]

impl AudioExt for Wav[src]

impl AudioExt for WavStream[src]

Loading content...