Class: RPG::ME

Inherits:
AudioFile show all
Defined in:
lib/R3EXS/RGSS3.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

.fade(time) ⇒ Object



1440
1441
1442
# File 'lib/R3EXS/RGSS3.rb', line 1440

def self.fade(time)
    Audio.me_fade(time)
end

.stopObject



1436
1437
1438
# File 'lib/R3EXS/RGSS3.rb', line 1436

def self.stop
    Audio.me_stop
end

Instance Method Details

#playObject



1428
1429
1430
1431
1432
1433
1434
# File 'lib/R3EXS/RGSS3.rb', line 1428

def play
    if @name.empty?
        Audio.me_stop
    else
        Audio.me_play('Audio/ME/' + @name, @volume, @pitch)
    end
end