Class: Audio::SFMLAudioDriver
- Inherits:
-
DriverBase
- Object
- DriverBase
- Audio::SFMLAudioDriver
- Defined in:
- docs/0_Dependencies.rb
Constant Summary
Constants inherited from DriverBase
DriverBase::AUDIO_FILENAME_EXTENSIONS
Instance Method Summary collapse
-
#fade_channel_out(channel, duration)
Fade a channel out.
-
#get_channel_audio_position(channel) ⇒ Integer
Get a channel audio position.
-
#get_channel_duration(channel) ⇒ Integer
Get a channel duration.
-
#initialize ⇒ SFMLAudioDriver
constructor
Create a new SFML Audio Driver.
-
#mute_channel_for(channel, duration)
Mute a channel for an amount of time.
-
#play_music(channel, filename, volume, pitch, fade_with_previous)
Play a music (looped).
-
#play_sound(channel, filename, volume, pitch)
Play a sound (just once).
-
#release
Release the driver.
-
#reset
Reset the driver.
-
#set_channel_audio_position(channel, position)
Set a channel audio position.
-
#set_channel_volume(channel, volume)
Set a channel volume.
-
#stop_channel(channel)
Stop a channel.
-
#unmute_channel(channel)
Unmute a channel.
-
#update
Update the driver.
Constructor Details
#initialize ⇒ SFMLAudioDriver
Create a new SFML Audio Driver
2765 2766 |
# File 'docs/0_Dependencies.rb', line 2765 def initialize end |
Instance Method Details
#fade_channel_out(channel, duration)
Fade a channel out
2794 2795 |
# File 'docs/0_Dependencies.rb', line 2794 def fade_channel_out(channel, duration) end |
#get_channel_audio_position(channel) ⇒ Integer
Get a channel audio position
2808 2809 |
# File 'docs/0_Dependencies.rb', line 2808 def get_channel_audio_position(channel) end |
#get_channel_duration(channel) ⇒ Integer
Get a channel duration
2827 2828 |
# File 'docs/0_Dependencies.rb', line 2827 def get_channel_duration(channel) end |
#mute_channel_for(channel, duration)
Mute a channel for an amount of time
2818 2819 |
# File 'docs/0_Dependencies.rb', line 2818 def mute_channel_for(channel, duration) end |
#play_music(channel, filename, volume, pitch, fade_with_previous)
Play a music (looped)
2789 2790 |
# File 'docs/0_Dependencies.rb', line 2789 def play_music(channel, filename, volume, pitch, fade_with_previous) end |
#play_sound(channel, filename, volume, pitch)
Play a sound (just once)
2781 2782 |
# File 'docs/0_Dependencies.rb', line 2781 def play_sound(channel, filename, volume, pitch) end |
#release
Release the driver
2771 2772 |
# File 'docs/0_Dependencies.rb', line 2771 def release end |
#reset
Reset the driver
2768 2769 |
# File 'docs/0_Dependencies.rb', line 2768 def reset end |
#set_channel_audio_position(channel, position)
Set a channel audio position
2813 2814 |
# File 'docs/0_Dependencies.rb', line 2813 def set_channel_audio_position(channel, position) end |
#set_channel_volume(channel, volume)
Set a channel volume
2803 2804 |
# File 'docs/0_Dependencies.rb', line 2803 def set_channel_volume(channel, volume) end |
#stop_channel(channel)
Stop a channel
2798 2799 |
# File 'docs/0_Dependencies.rb', line 2798 def stop_channel(channel) end |
#unmute_channel(channel)
Unmute a channel
2822 2823 |
# File 'docs/0_Dependencies.rb', line 2822 def unmute_channel(channel) end |
#update
Update the driver
2774 2775 |
# File 'docs/0_Dependencies.rb', line 2774 def update end |