Class: SDC::Music
- Inherits:
-
Object
- Object
- SDC::Music
- Defined in:
- engine_docs/automatic_doc_Music.rb,
engine_docs/automatic_doc_Music.rb
Overview
Music track class
Instance Attribute Summary collapse
-
#looping ⇒ Boolean
Looping property of the music track.
-
#pitch ⇒ Float
Pitch of the music track, with default 1.0.
-
#volume ⇒ Float
Volume of the music track, ranging from 0 to 100 (default).
Instance Method Summary collapse
-
#initialize ⇒ Music
constructor
Creates a music track (without content).
-
#open_from_file(filename) ⇒ Boolean
Loads the music track from file, returning true if loading was successful, else false.
-
#pause ⇒ nil
Pauses the music track if running.
-
#play ⇒ nil
Plays the music track from the beginning or resumes it if paused.
-
#stop ⇒ nil
Stops the music track if running.
Constructor Details
#initialize ⇒ Music
Creates a music track (without content)
|
# File 'engine_docs/automatic_doc_Music.rb', line 9
|
Instance Attribute Details
#looping ⇒ Boolean
Looping property of the music track
|
# File 'engine_docs/automatic_doc_Music.rb', line 29
|
#pitch ⇒ Float
Pitch of the music track, with default 1.0
|
# File 'engine_docs/automatic_doc_Music.rb', line 33
|
#volume ⇒ Float
Volume of the music track, ranging from 0 to 100 (default)
|
# File 'engine_docs/automatic_doc_Music.rb', line 37
|
Instance Method Details
#open_from_file(filename) ⇒ Boolean
Loads the music track from file, returning true if loading was successful, else false.
|
# File 'engine_docs/automatic_doc_Music.rb', line 41
|
#pause ⇒ nil
Pauses the music track if running
|
# File 'engine_docs/automatic_doc_Music.rb', line 24
|
#play ⇒ nil
Plays the music track from the beginning or resumes it if paused
|
# File 'engine_docs/automatic_doc_Music.rb', line 14
|
#stop ⇒ nil
Stops the music track if running
|
# File 'engine_docs/automatic_doc_Music.rb', line 19
|