[][src]Struct soloud::audio::Bus

pub struct Bus { /* fields omitted */ }

Implementations

impl Bus[src]

pub fn active_voice_count(&self) -> u32[src]

Get active voice count

pub fn play<T: AudioExt>(&self, sound: &T) -> Handle[src]

Play audio

pub fn play_ex<AS: AudioExt>(
    &self,
    sound: &AS,
    volume: f32,
    pan: f32,
    paused: bool
) -> u32
[src]

Play audio with extra args

pub fn play_clocked<AS: AudioExt>(&self, sound_time: f64, sound: &AS) -> u32[src]

Play clocked

pub fn play_clocked_ex<AS: AudioExt>(
    &self,
    sound_time: f64,
    sound: &AS,
    volume: f32,
    pan: f32
) -> u32
[src]

Play clocked with extra args

pub fn play_3d<AS: AudioExt>(
    &self,
    sound: &AS,
    pos_x: f32,
    pos_y: f32,
    pos_z: f32
) -> u32
[src]

Play 3D

pub fn play_3d_ex<AS: AudioExt>(
    &self,
    sound: &AS,
    pos_x: f32,
    pos_y: f32,
    pos_z: f32,
    vel_x: f32,
    vel_y: f32,
    vel_z: f32,
    volume: f32,
    paused: bool
) -> u32
[src]

Play 3D with extra args

pub fn play_3d_clocked<AS: AudioExt>(
    &self,
    sound_time: f64,
    sound: &AS,
    pos_x: f32,
    pos_y: f32,
    pos_z: f32
) -> u32
[src]

Play 3D clocked

pub fn play_3d_clocked_ex<AS: AudioExt>(
    &self,
    sound_time: f64,
    sound: &AS,
    pos_x: f32,
    pos_y: f32,
    pos_z: f32,
    vel_x: f32,
    vel_y: f32,
    vel_z: f32,
    volume: f32
) -> u32
[src]

Play 3D clocked with extra args

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

Enable visualizations

pub fn calc_fft(&self) -> Vec<f32>[src]

Calculate and get 256 floats of FFT data for visualization. Visualization has to be enabled before use

pub fn wave(&self) -> Vec<f32>[src]

Get 256 floats of wave data for visualization. Visualization has to be enabled before use

pub fn approximate_volume(&self, channel: u32) -> f32[src]

Get approximate volume

pub fn set_channels(&mut self, channels: u32) -> Result<(), SoloudError>[src]

Set bus channels

pub fn resampler(&self) -> Resampler[src]

Get bus resampler

pub fn set_resampler(&mut self, resampler: Resampler)[src]

Set bus resampler

Trait Implementations

impl AudioExt for Bus[src]

impl Drop for Bus[src]

Auto Trait Implementations

impl RefUnwindSafe for Bus

impl !Send for Bus

impl !Sync for Bus

impl Unpin for Bus

impl UnwindSafe for Bus

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.