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.



1368
1369
1370
1371
1372
# File 'lib/R3EXS/RGSS3.rb', line 1368

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



1374
1375
1376
# File 'lib/R3EXS/RGSS3.rb', line 1374

def name
  @name
end

#pitchObject

Returns the value of attribute pitch.



1376
1377
1378
# File 'lib/R3EXS/RGSS3.rb', line 1376

def pitch
  @pitch
end

#volumeObject

Returns the value of attribute volume.



1375
1376
1377
# File 'lib/R3EXS/RGSS3.rb', line 1375

def volume
  @volume
end