I’m developing a small game and I have a few .ogg and .m4a audio files that are below one second long. When user clicks on an image, one of these short sounds is played at random (there are five different versions of the sound).
However, quite often if the image is clicked repeatedly fast, a following error occurs in the console and no sounds are played after this has happened (all future tries will end up with this same error)
Warning: audio error: alBufferData failed: Invalid Operation
Warning: audio error: Could not get data for streamed PlayChannel:
Notice that no PlayChannel is mentioned in the error message.
I trigger the play call like this:
audio.play(file, {onComplete=coinCompleted, fadein=0})
Any ideas?