Module: Audio
- Defined in:
- lib/audio.rb
Overview
The module that carries out music and sound processing.
Class Method Summary collapse
-
.bgm_fade(time) ⇒ Object
Starts BGM fadeout.
-
.bgm_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts BGM playback.
-
.bgm_stop ⇒ Object
Stops BGM playback.
-
.bgs_fade(time) ⇒ Object
Starts BGS fadeout.
-
.bgs_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts BGS playback.
-
.bgs_stop ⇒ Object
Stops BGS playback.
-
.me_fade(time) ⇒ Object
Starts ME fadeout.
-
.me_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts ME playback.
-
.me_stop ⇒ Object
Stops ME playback.
-
.se_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts SE playback.
-
.se_stop ⇒ Object
Stops SE playback.
Class Method Details
.bgm_fade(time) ⇒ Object
Starts BGM fadeout. time is the length of the fadeout in milliseconds.
16 17 18 |
# File 'lib/audio.rb', line 16 def Audio.bgm_fade(time) raise "not implemented" end |
.bgm_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts BGM playback. Sets the file name, volume, and pitch in turn.
Also automatically searches files included in RGSS-RTP. File extensions may be omitted.
6 7 8 |
# File 'lib/audio.rb', line 6 def Audio.bgm_play(filename, volume = 100, pitch = 100) raise "not implemented" end |
.bgm_stop ⇒ Object
Stops BGM playback.
11 12 13 |
# File 'lib/audio.rb', line 11 def Audio.bgm_stop raise "not implemented" end |
.bgs_fade(time) ⇒ Object
Starts BGS fadeout. time is the length of the fadeout in milliseconds.
33 34 35 |
# File 'lib/audio.rb', line 33 def Audio.bgs_fade(time) raise "not implemented" end |
.bgs_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts BGS playback. Sets the file name, volume, and pitch in turn.
Also automatically searches files included in RGSS-RTP. File extensions may be omitted.
23 24 25 |
# File 'lib/audio.rb', line 23 def Audio.bgs_play(filename, volume = 100, pitch = 100) raise "not implemented" end |
.bgs_stop ⇒ Object
Stops BGS playback.
28 29 30 |
# File 'lib/audio.rb', line 28 def Audio.bgs_stop raise "not implemented" end |
.me_fade(time) ⇒ Object
Starts ME fadeout. time is the length of the fadeout in milliseconds.
50 51 52 |
# File 'lib/audio.rb', line 50 def Audio.me_fade(time) raise "not implemented" end |
.me_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts ME playback. Sets the file name, volume, and pitch in turn.
Also automatically searches files included in RGSS-RTP. File extensions may be omitted.
40 41 42 |
# File 'lib/audio.rb', line 40 def Audio.me_play(filename, volume = 100, pitch = 100) raise "not implemented" end |
.me_stop ⇒ Object
Stops ME playback.
45 46 47 |
# File 'lib/audio.rb', line 45 def Audio.me_stop raise "not implemented" end |
.se_play(filename, volume = 100, pitch = 100) ⇒ Object
Starts SE playback. Sets the file name, volume, and pitch in turn.
Also automatically searches files included in RGSS-RTP. File extensions may be omitted.
When attempting to play the same SE more than once in a very short period, they will automatically be filtered to prevent choppy playback.
59 60 61 |
# File 'lib/audio.rb', line 59 def Audio.se_play(filename, volume = 100, pitch = 100) raise "not implemented" end |
.se_stop ⇒ Object
Stops SE playback.
64 65 66 |
# File 'lib/audio.rb', line 64 def Audio.se_stop raise "not implemented" end |