Difference between revisions of "SoundChannel:setEffect"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2022.6<br/> '''Class:''' SoundChannel<br/> === Description === Sets effects on a sound channel. <source lang="lua"> SoundChannel:...")
(No difference)

Revision as of 10:55, 12 March 2023

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})