Difference between revisions of "SoundChannel"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Supported platforms</translate>:''' [[File:Platform android]][[File:Platform ios]][[File:Platform mac]][[File:Platform pc]]<br/>
+
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
 
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
 
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
The `SoundChannel` class is used to control and monitor a playing sound.<br />
+
The [[Special:MyLanguage/SoundChannel|SoundChannel]] class is used to control and monitor a playing sound.<br />
 
<br />
 
<br />
 
<h3>SoundChannel Events</h3><br />
 
<h3>SoundChannel Events</h3><br />
 
<ul><br />
 
<ul><br />
<li>`Event.COMPLETE = "complete"` When the sound channel has finished playing, `Event.COMPLETE` event is dispatched.</li><br />
+
<li>''Event.COMPLETE = "complete"'' When the sound channel has finished playing, [[Special:MyLanguage/Event.COMPLETE|Event.COMPLETE]] event is dispatched.</li><br />
 
</ul><br />
 
</ul><br />
 
<br /></translate>
 
<br /></translate>

Revision as of 10:35, 24 August 2018

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.png
Available since: Gideros 2011.6
Inherits from: Object

Description


The SoundChannel class is used to control and monitor a playing sound.

SoundChannel Events



  • Event.COMPLETE = "complete" When the sound channel has finished playing, Event.COMPLETE event is dispatched.



Methods

SoundChannel:getPitch returns the current pitch of the sound channel
SoundChannel:getPosition returns the position of the current playback
SoundChannel:getVolume returns the current volume of the sound channel
SoundChannel:isLooping returns the looping state of the channel
SoundChannel:isPaused returns the paused state of the channel
SoundChannel:isPlaying returns the playing state for the sound channel
SoundChannel:setLooping sets the looping state of the channel
SoundChannel:setPaused sets the paused state of the channel
SoundChannel:setPitch sets the pitch of the sound channel
SoundChannel:setPosition sets the position of the current playback
SoundChannel:setVolume sets the volume of the sound channel
SoundChannel:setWorldPosition
SoundChannel:stop stops the sound playing in the channel

Events

Event.COMPLETE

Constants