#audio not playing in game but playing in the editor
1 messages · Page 1 of 1 (latest)
I added it to a default AudioStreamPlayer and it seemed to work just fine
okay, so when I put it on autoplay it does seem to work fine
So somehow it seems like it doesn't get called
If you need to determine whether or not it's playing in-game, you can use the "Remote" tab on the left while running the game to see if the AudioStreamPlayer is actually playing (maybe pop the game into the editor -- I find that helps when working with the remote tree).
Or you can debug the line when your code calls "streamPlayer.play()" (or however it looks)
Then, if it doesn't debug-pause the game when it should be hitting that line, you'll know it definitely isn't getting called. Then just debug lines each function out of that one to see where the bug occurs.