#Greetings folks, i am currently having

1 messages · Page 1 of 1 (latest)

fast wind
#

My current game jam project has been halted by this annoying bug:
The audio sources that i add manually AND/OR create via script cannot play their respective clips
Im using Unity 2022.3.20f1 (Upgraded from 2022.3.3f1) and the project itself is a WebGL project.

I have tried multiple things:

  • Have gone to Edit > Project Settings > Audio and verified that Global Volume is set to 1 as well as Disable Unity Audio is set to false
  • Quadruple checked that the Mute button is not pressed.
  • Checked in Windows 11 that Unity is not muted there
  • Swapped file format on clips (MP3) to OGG.
  • Verified that clips play on their own (both in Unity's clip preview and on windows)
  • Upgrade Unity version to latest LTS (2022.3.3f1) > (2022.3.20f1)

Things that i have noticed:

  • I have logic that checks whenever or not a specific player is being played and the AudioSource.isPlaying always returns false, even - when in a previous call, it was true.
  • The Audio Mixer used in conjuction to the Audio Sources is not being used at all, indicating that its not a volume issue but that the clips themselves (even in playOnAwake mode) are not being played.
  • Audio actually plays in the Scene view but not during Play
  • Audio does not play when running a built version of the game
graceful shale
#

Audio actually plays in the Scene view but not during Play
It's most likely not web related if it can be reproduced in editor. Unity doesn't really emulate platforms you are targeting in editor.