Available since: Gideros 2011.6
Inherits from: Object
The SoundChannel class is used to control and monitor a playing sound.
- Event.COMPLETE = "complete" When the sound channel has finished playing, Event.COMPLETE event is dispatched.
local sound1 = Sound.new("audio/sound1.ogg") local audio1 = sound1:play() audio1:addEventListener(Event.COMPLETE, function() -- play a second audio when the first one is complete local sound2 = Sound.new("audio/sound2.ogg") local audio2 = sound2:play() end)
SoundChannel:getPitch returns the current pitch of the sound channel