Difference between revisions of "SoundChannel"

From GiderosMobile
Line 12: Line 12:
 
<br /></translate>
 
<br /></translate>
 
{|-
 
{|-
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[SoundChannel:getPitch]] {{<translate>returns the current pitch of the sound channel</translate>}}<br/>
+
[[SoundChannel:getPitch]] ''<translate>returns the current pitch of the sound channel</translate>''<br/>
[[SoundChannel:getPosition]] {{<translate>returns the position of the current playback</translate>}}<br/>
+
[[SoundChannel:getPosition]] ''<translate>returns the position of the current playback</translate>''<br/>
[[SoundChannel:getVolume]] {{<translate>returns the current volume of the sound channel</translate>}}<br/>
+
[[SoundChannel:getVolume]] ''<translate>returns the current volume of the sound channel</translate>''<br/>
[[SoundChannel:isLooping]] {{<translate>returns the looping state of the channel</translate>}}<br/>
+
[[SoundChannel:isLooping]] ''<translate>returns the looping state of the channel</translate>''<br/>
[[SoundChannel:isPaused]] {{<translate>returns the paused state of the channel</translate>}}<br/>
+
[[SoundChannel:isPaused]] ''<translate>returns the paused state of the channel</translate>''<br/>
[[SoundChannel:isPlaying]] {{<translate>returns the playing state for the sound channel</translate>}}<br/>
+
[[SoundChannel:isPlaying]] ''<translate>returns the playing state for the sound channel</translate>''<br/>
[[SoundChannel:setLooping]] {{<translate>sets the looping state of the channel</translate>}}<br/>
+
[[SoundChannel:setLooping]] ''<translate>sets the looping state of the channel</translate>''<br/>
[[SoundChannel:setPaused]] {{<translate>sets the paused state of the channel</translate>}}<br/>
+
[[SoundChannel:setPaused]] ''<translate>sets the paused state of the channel</translate>''<br/>
[[SoundChannel:setPitch]] {{<translate>sets the pitch of the sound channel</translate>}}<br/>
+
[[SoundChannel:setPitch]] ''<translate>sets the pitch of the sound channel</translate>''<br/>
[[SoundChannel:setPosition]] {{<translate>sets the position of the current playback</translate>}}<br/>
+
[[SoundChannel:setPosition]] ''<translate>sets the position of the current playback</translate>''<br/>
[[SoundChannel:setVolume]] {{<translate>sets the volume of the sound channel</translate>}}<br/>
+
[[SoundChannel:setVolume]] ''<translate>sets the volume of the sound channel</translate>''<br/>
[[SoundChannel:setWorldPosition]] {{<translate></translate>}}<br/>
+
[[SoundChannel:setWorldPosition]] ''<translate></translate>''<br/>
[[SoundChannel:stop]] {{<translate>stops the sound playing in the channel</translate>}}<br/>
+
[[SoundChannel:stop]] ''<translate>stops the sound playing in the channel</translate>''<br/>
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
[[Event.COMPLETE]]<br/>
 
[[Event.COMPLETE]]<br/>
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 15:29, 23 August 2018

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description


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

SoundChannel Events




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