I have a problem that intermittently some audio for my game is not working. It can work fine for a couple of minutes but then suddenly go silent and not work for that channel.
Any ideas why? Any known issues?
Details
* using this particular channel for a few different sounds that can occur during the game
* swap use of sounds on the channel as need be
* I have put the following code in the game loop and everything seems ok when the sound fails…
print ("Audio Active/Playing/Paused/Volume: ",
audio.isChannelActive(Constants.AUDIO\_SFX),
audio.isChannelPlaying(Constants.AUDIO\_SFX),
audio.isChannelPaused(Constants.AUDIO\_SFX),
audio.getVolume(Constants.AUDIO\_SFX)
)
* Code example of what I’m doing at various points, in terms of swapping use of the channel for different sounds
if audio.isChannelActive( Constants.AUDIO\_SFX ) then
audio.stop(Constants.AUDIO\_SFX)
end
audio.play(runningSound, {channel=Constants.AUDIO\_CANOPY\_SFX, loops=-1, fadein=10 } )
[import]uid: 140210 topic_id: 34541 reply_id: 334541[/import]