Difference between revisions of "SoundChannel"
| Line 4: | Line 4: | ||
| === Description === | === Description === | ||
| <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>[[Special:MyLanguage/Event.COMPLETE = "complete"|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> | ||
| Line 14: | Line 14: | ||
| | style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| === Methods === | === Methods === | ||
| − | [[SoundChannel:getPitch]] ''<translate>returns the current pitch of the sound channel</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:getPitch|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/> | + | [[Special:MyLanguage/SoundChannel:getPosition|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/> | + | [[Special:MyLanguage/SoundChannel:getVolume|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/> | + | [[Special:MyLanguage/SoundChannel:isLooping|SoundChannel:isLooping]] ''<translate>returns the looping state of the channel</translate>''<br/> | 
| − | [[SoundChannel:isPaused]] ''<translate>returns the paused state of the channel</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:isPaused|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/> | + | [[Special:MyLanguage/SoundChannel:isPlaying|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/> | + | [[Special:MyLanguage/SoundChannel:setLooping|SoundChannel:setLooping]] ''<translate>sets the looping state of the channel</translate>''<br/> | 
| − | [[SoundChannel:setPaused]] ''<translate>sets the paused state of the channel</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:setPaused|SoundChannel:setPaused]] ''<translate>sets the paused state of the channel</translate>''<br/> | 
| − | [[SoundChannel:setPitch]] ''<translate>sets the pitch of the sound channel</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:setPitch|SoundChannel:setPitch]] ''<translate>sets the pitch of the sound channel</translate>''<br/> | 
| − | [[SoundChannel:setPosition]] ''<translate>sets the position of the current playback</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:setPosition|SoundChannel:setPosition]] ''<translate>sets the position of the current playback</translate>''<br/> | 
| − | [[SoundChannel:setVolume]] ''<translate>sets the volume of the sound channel</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:setVolume|SoundChannel:setVolume]] ''<translate>sets the volume of the sound channel</translate>''<br/> | 
| − | [[SoundChannel:setWorldPosition]] <br/> | + | [[Special:MyLanguage/SoundChannel:setWorldPosition|SoundChannel:setWorldPosition]] <br/> | 
| − | [[SoundChannel:stop]] ''<translate>stops the sound playing in the channel</translate>''<br/> | + | [[Special:MyLanguage/SoundChannel:stop|SoundChannel:stop]] ''<translate>stops the sound playing in the channel</translate>''<br/> | 
| | style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
| === Events === | === Events === | ||
| − | [[Event.COMPLETE]]<br/> | + | [[Special:MyLanguage/Event.COMPLETE|Event.COMPLETE]]<br/> | 
| === Constants === | === Constants === | ||
| |} | |} | ||
Revision as of 16:35, 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
- Event.COMPLETE = "complete" When the sound channel has finished playing, Event.COMPLETE event is dispatched.
| MethodsSoundChannel:getPitch returns the current pitch of the sound channel | EventsConstants | 
