Here is the problem I am having with playing audio on a designated or available channels:
-
The audio below is for a slider button that plays a click sound as the slider is being moved, so it is called quickly and repeatedly
-
I’ve tried (and would prefer) to use “availableChannel” but that results in horrible and distorted audio
-
The code below checks to make sure audio is not playing before it plays - it plays the audio but it still returns error messages that read “Warning: audio error: Requested channel (4) is in use.”
[lua]
if audio.isChannelPlaying( 5 ) == false then
audio.play(chSound, { channel=5 } )
end
[/lua]
Thanks for any help!