Open glebqip opened 7 years ago
This might be related to #3210, but I can't reproduce it. Can you try again using the same sounds you tested this with originally on the dev branch.
If it's still happening, post a link to the workshop addon containing the sounds if possible.
Tested my script in dev version - still have random sound file misses, but i don't get BASS_ERROR_UNKNOWN and sound gliches in my addon.
No, i moved to workshop version of addon and again it gives me BASS_ERROR_UNKNOWN and mechanical noise in random sounds with last dev branch update
There is a new version of BASS. Supposedly it has fixed those BASS_ERROR_UNKNOWN problems with some file formats. (https://github.com/Facepunch/garrysmod-requests/issues/1071)
To investigate this issue and #3401 further could you also try to reproduce it with gm_bass3 installed (using the BASS3.PlayFile() function) and tell me if you get the same results? https://gmod.facepunch.com/f/gmodaddon/jina/gm-bass3-A-cross-plattform-shared-Lua-API-to-BASS/1/
In your error description you told us that it would just print sound1 but not sound2 or 3. Your example code can just prints sound1 as the other both callback function do not have any print calls, Maybe you should adjust that code for better testing.
By the way I'm not sure if the above code does what you intended to do, because the timer.Create calls look like they would just cause a hell of a noise. I wouldn't be able to tell if everything sounds right or not. If you want to use a delay in each cycle you should just work with timer.simple calls inside the first timer.Create.
Details
BASS library very much (because we need positional sound). Our sounds were placed in addon folder and all be fine. When we sent all sounds to the workshop and started using it, we got random strange sound behavior (for example, it must play sounds / testsound / sound1 but we heard sounds / testsound / sound2 from the same folder, and in debug prints we have that played sounds/testsound/sound1). Also after we uploaded all sounds to workshop, we got some random BASS BASS_ERROR_UNKNOWN errors when sound creates with errorcode 41. Maybe it
Steps to reproduce
Find any workshop addon with some sounds in 1 folder. Run this code:
You will hear, that in some plays sound 1 has be broken/replaced.
I run lua code with chatsounds workshop addon and got this: https://youtu.be/u8Kx61yNpHY
I changed code to play 3 sounds simultaneously and got more strange behavior: https://youtu.be/fStS1nXFyUo