[−][src]Struct raylib::core::audio::RaylibAudio
This token is used to indicate VR is initialized
Methods
impl RaylibAudio
[src]
pub fn init_audio_device() -> RaylibAudio
[src]
Initializes audio device and context.
pub fn is_audio_device_ready(&self) -> bool
[src]
Checks if audio device is ready.
pub fn set_master_volume(&self, volume: f32)
[src]
Sets master volume (listener).
pub fn play_sound(&mut self, sound: &Sound)
[src]
Plays a sound.
pub fn pause_sound(&mut self, sound: &Sound)
[src]
Pauses a sound.
pub fn resume_sound(&mut self, sound: &Sound)
[src]
Resumes a paused sound.
pub fn stop_sound(&mut self, sound: &Sound)
[src]
Stops playing a sound.
pub fn is_sound_playing(&self, sound: &Sound) -> bool
[src]
Checks if a sound is currently playing.
pub fn set_sound_volume(&mut self, sound: &Sound, volume: f32)
[src]
Sets volume for a sound (1.0
is max level).
pub fn set_sound_pitch(&mut self, sound: &Sound, pitch: f32)
[src]
Sets pitch for a sound (1.0
is base level).
pub fn play_music_stream(&mut self, music: &mut Music)
[src]
Starts music playing.
pub fn update_music_stream(&mut self, music: &mut Music)
[src]
Updates buffers for music streaming.
pub fn stop_music_stream(&mut self, music: &mut Music)
[src]
Stops music playing.
pub fn pause_music_stream(&mut self, music: &mut Music)
[src]
Pauses music playing.
pub fn resume_music_stream(&mut self, music: &mut Music)
[src]
Resumes playing paused music.
pub fn is_music_playing(&self, music: &Music) -> bool
[src]
Checks if music is playing.
pub fn set_music_volume(&mut self, music: &mut Music, volume: f32)
[src]
Sets volume for music (1.0
is max level).
pub fn set_music_pitch(&mut self, music: &mut Music, pitch: f32)
[src]
Sets pitch for music (1.0
is base level).
pub fn set_music_loop_count(&mut self, music: &mut Music, count: i32)
[src]
Sets music loop count (loop repeats).
pub fn get_music_time_length(&self, music: &Music) -> f32
[src]
Gets music time length in seconds.
pub fn get_music_time_played(&self, music: &Music) -> f32
[src]
Gets current music time played in seconds.
pub fn play_audio_stream(&mut self, stream: &mut AudioStream)
[src]
Plays audio stream.
pub fn pause_audio_stream(&mut self, stream: &mut AudioStream)
[src]
Pauses audio stream.
pub fn resume_audio_stream(&mut self, stream: &mut AudioStream)
[src]
Resumes audio stream.
pub fn is_audio_stream_playing(&self, stream: &AudioStream) -> bool
[src]
Checks if audio stream is currently playing.
pub fn stop_audio_stream(&mut self, stream: &mut AudioStream)
[src]
Stops audio stream.
pub fn set_audio_stream_volume(&mut self, stream: &mut AudioStream, volume: f32)
[src]
Sets volume for audio stream (1.0
is max level).
pub fn set_audio_stream_pitch(&mut self, stream: &mut AudioStream, pitch: f32)
[src]
Sets pitch for audio stream (1.0
is base level).
Trait Implementations
impl Debug for RaylibAudio
[src]
impl Drop for RaylibAudio
[src]
Auto Trait Implementations
impl RefUnwindSafe for RaylibAudio
impl Send for RaylibAudio
impl Sync for RaylibAudio
impl Unpin for RaylibAudio
impl UnwindSafe for RaylibAudio
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,