Reproduction steps:
1. Open the “OneShotBug“ project from internal notes
2. Open the “Controllers” scene
3. Ensure WebGL is the selected platform in Build Settings
4. Build And Run
5. Observe the browser console for up to a minute
Expected result: No FMOD errors
Actual result: Rapid FMOD_ERR_INVALID_PARAM and FMOD_ERR_INVALID_HANDLE errors
Reproduced in: 2021.3.27f1, 2022.3.3f1, 2023.1.1f1, 2023.2.0a21
Reproduced using: macOS 13.4 (Intel), macOS 12.6.5 (Intel)
Full errors:
1. FMOD returns error code 37 (FMOD_ERR_INVALID_PARAM) executing createDSP
2. FMOD returns error code 36 (FMOD_ERR_INVALID_HANDLE) executing addDSP
Notes:
1. Different from https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-28703, as that bug is tied to the audio source being destroyed and its fixes didn't fix this
2. Not reproduced in Play Mode and StandaloneOSX