Class: RPG::AudioFile

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Direct Known Subclasses

BGM, BGS, ME, SE

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = '', volume = 100, pitch = 100) ⇒ AudioFile

Returns a new instance of AudioFile.



1346
1347
1348
1349
1350
# File 'lib/R3EXS/RGSS3.rb', line 1346

def initialize(name = '', volume = 100, pitch = 100)
    @name   = name
    @volume = volume
    @pitch  = pitch
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1352
1353
1354
# File 'lib/R3EXS/RGSS3.rb', line 1352

def name
  @name
end

#pitchObject

Returns the value of attribute pitch.



1354
1355
1356
# File 'lib/R3EXS/RGSS3.rb', line 1354

def pitch
  @pitch
end

#volumeObject

Returns the value of attribute volume.



1353
1354
1355
# File 'lib/R3EXS/RGSS3.rb', line 1353

def volume
  @volume
end