[−][src]Trait keeshond::audio::Audio
Public interface to controlling audio in your game
Required methods
fn unit_scale(&self) -> f32
fn set_unit_scale(&mut self, scale: f32)
fn listener_position(&self) -> (f32, f32)
fn set_listener_position(&mut self, x: f32, y: f32)
fn play_sound(&mut self, sound_id: DataId) -> Option<Voice>
fn play_sound_with(
&mut self,
sound_id: DataId,
voice_info: &VoiceInfo
) -> Option<Voice>
&mut self,
sound_id: DataId,
voice_info: &VoiceInfo
) -> Option<Voice>
fn stop_voice(&mut self, voice: &Voice) -> bool
fn voice(&self, voice: &Voice) -> Option<VoiceInfo>
fn set_voice(&mut self, voice: &Voice, voice_info: &VoiceInfo) -> bool
fn max_voices(&self) -> usize
fn sync_sound_store(
&mut self,
sound_store: &mut DataStore<Sound>
) -> Result<(), PreparedStoreError>
&mut self,
sound_store: &mut DataStore<Sound>
) -> Result<(), PreparedStoreError>
Implementors
impl Audio for AlAudio
[src]
fn unit_scale(&self) -> f32
[src]
fn set_unit_scale(&mut self, scale: f32)
[src]
fn listener_position(&self) -> (f32, f32)
[src]
fn set_listener_position(&mut self, x: f32, y: f32)
[src]
fn play_sound(&mut self, sound_id: DataId) -> Option<Voice>
[src]
fn play_sound_with(
&mut self,
sound_id: DataId,
voice_info: &VoiceInfo
) -> Option<Voice>
[src]
&mut self,
sound_id: DataId,
voice_info: &VoiceInfo
) -> Option<Voice>
fn stop_voice(&mut self, voice: &Voice) -> bool
[src]
fn set_voice(&mut self, voice: &Voice, voice_info: &VoiceInfo) -> bool
[src]
fn voice(&self, voice: &Voice) -> Option<VoiceInfo>
[src]
fn max_voices(&self) -> usize
[src]
fn sync_sound_store(
&mut self,
sound_store: &mut DataStore<Sound>
) -> Result<(), PreparedStoreError>
[src]
&mut self,
sound_store: &mut DataStore<Sound>
) -> Result<(), PreparedStoreError>
impl Audio for NullAudio
[src]
fn unit_scale(&self) -> f32
[src]
fn set_unit_scale(&mut self, scale: f32)
[src]
fn listener_position(&self) -> (f32, f32)
[src]
fn set_listener_position(&mut self, x: f32, y: f32)
[src]
fn play_sound(&mut self, sound_id: DataId) -> Option<Voice>
[src]
fn play_sound_with(
&mut self,
sound_id: DataId,
voice_info: &VoiceInfo
) -> Option<Voice>
[src]
&mut self,
sound_id: DataId,
voice_info: &VoiceInfo
) -> Option<Voice>
fn stop_voice(&mut self, voice: &Voice) -> bool
[src]
fn voice(&self, voice: &Voice) -> Option<VoiceInfo>
[src]
fn set_voice(&mut self, voice: &Voice, voice_info: &VoiceInfo) -> bool
[src]
fn max_voices(&self) -> usize
[src]
fn sync_sound_store(
&mut self,
sound_store: &mut DataStore<Sound>
) -> Result<(), PreparedStoreError>
[src]
&mut self,
sound_store: &mut DataStore<Sound>
) -> Result<(), PreparedStoreError>