Class: SDC::Sound

Inherits:
Object
  • Object
show all
Defined in:
engine_docs/automatic_doc_Sound.rb,
engine_docs/automatic_doc_Sound.rb

Overview

Sound class holding a sound buffer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSound

Creates a sound (without content)



# File 'engine_docs/automatic_doc_Sound.rb', line 9

Instance Attribute Details

#pitchFloat

Pitch of the sound, with default 1.0

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_Sound.rb', line 34

#volumeFloat

Volume of the sound, ranging from 0 to 100 (default)

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_Sound.rb', line 30

Instance Method Details

Links a sound buffer to this sound

Parameters:

Returns:

  • (true)


# File 'engine_docs/automatic_doc_Sound.rb', line 14

#playnil

Pauses the sound if running

Returns:

  • (nil)


# File 'engine_docs/automatic_doc_Sound.rb', line 20

#stopnil

Stops the sound if running

Returns:

  • (nil)


# File 'engine_docs/automatic_doc_Sound.rb', line 25