Constructor
new Sounds()
Creates a new instance of the Sounds class.
- Source:
Members
(readonly) master :rune.media.soundChannel
The Master Channel. This channel is for special cases and can therefore
contain both sound and / or music. This channel does not stop playback when
the application switches from one set of scenes to another. The channel is
also limited to only shared audio objects, ie the channel can thus not
contain "unique" Sound objects. This is so that the same Sound object can
be retrieved between scene changes.
Type:
- rune.media.soundChannel
- Source:
(readonly) music :rune.media.soundChannel
The music channel. This channel is intended for playing background music so
that it can be easily isolated from sound effects. The channel allows both
"unique" and "shared" audio objects. When the application switches between a
set of scenes, the sound channel is stopped and emptied of all existing
Sound objects.
Type:
- rune.media.soundChannel
- Source:
(readonly) sound :rune.media.soundChannel
The sound channel. This channel is intended for sound effects. The channel
allows both "unique" and "shared" audio objects. Just like the Music
channel, the channel is emptied when the application switches from one set
of scenes to another.
Type:
- rune.media.soundChannel
- Source: