Class: RPG::ME
Instance Attribute Summary
Attributes inherited from AudioFile
#name, #pitch, #volume
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from AudioFile
#initialize
Constructor Details
This class inherits a constructor from RPG::AudioFile
Class Method Details
.fade(time) ⇒ Object
87
88
89
|
# File 'lib/rgss3/rpg.rb', line 87
def self.fade(time)
Audio.me_fade(time)
end
|
.stop ⇒ Object
84
85
86
|
# File 'lib/rgss3/rpg.rb', line 84
def self.stop
Audio.me_stop
end
|
Instance Method Details
#play ⇒ Object
77
78
79
80
81
82
83
|
# File 'lib/rgss3/rpg.rb', line 77
def play
if @name.empty?
Audio.me_stop
else
Audio.me_play('Audio/ME/' + @name, @volume, @pitch)
end
end
|