Class: RPG::SE

Inherits:
AudioFile show all
Defined in:
lib/rgss3/rpg.rb

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

.stopObject



99
100
101
# File 'lib/rgss3/rpg.rb', line 99

def self.stop
  Audio.se_stop
end

Instance Method Details

#playObject



94
95
96
97
98
# File 'lib/rgss3/rpg.rb', line 94

def play
  unless @name.empty?
    Audio.se_play('Audio/SE/' + @name, @volume, @pitch)
  end
end