SoundChannel:setEffect
From GiderosMobile
Revision as of 09:55, 12 March 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2022.6<br/> '''Class:''' SoundChannel<br/> === Description === Sets effects on a sound channel. <source lang="lua"> SoundChannel:...")
Available since: Gideros 2022.6
Class: SoundChannel
Description
Sets effects on a sound channel.
SoundChannel:setEffect(effect,params)
TODO: add a list of all possible effects
Parameters
effect: (number) the effect to set new values to
params: (number) the new values of the effect
Example
local sndcoin = Sound.new("audio/sfx/sfx_coin_double1.wav")
local channel = sndcoin:play()
channel:setEffect("equalizer", {AL_EQUALIZER_HIGH_GAIN, 10})
- SoundChannel:getPitch
- SoundChannel:getPosition
- SoundChannel:getStreamId
- SoundChannel:getVolume
- SoundChannel:isLooping
- SoundChannel:isPaused
- SoundChannel:isPlaying
- SoundChannel:setEffect
- SoundChannel:setLooping
- SoundChannel:setPaused
- SoundChannel:setPitch
- SoundChannel:setPosition
- SoundChannel:setVolume
- SoundChannel:setWorldPosition
- SoundChannel:stop