Discord
Login
Community
DARK THEME

audio.beep() trouble

I used audio.beep() in a couple places for some simple sound effects and it seems to work for a few seconds after starting the game but then it just stops making any sounds and I can't figure out why. Any reason why it would behave this way, or any known bugs?

try placing the shoot button under a key other than ctrl - combining ctrl and another key can be used by the browser as a shortcut and cause different reactions.

Thanks for the tip! That wasn't it, but I got it working. put one of my calls to audio.beep in a different spot and that somehow fixed it idk. Also, I changed the sound off of noise so maybe that was messing up somehow?

I once reported a bug that occurred in audio.beep after using a letter outside the allowed range, e.g.:

init = function()
  audio.beep("D E F")
end

update = function()
  audio.beep("X")
end

If you comment out the line in the update function, the sound will open correctly. If you leave this line uncommented, there is no sound playback.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community