ID:2625688
 
BYOND Version:513
Operating System:Windows 10 Home
Web Browser:Chrome 86.0.4240.75
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
In the documentation for the sound datum, it says that sound is only considered to be 3D when either: X Y or Z are set to non-zero values, or if environment is set.

As sound environments are global, (As described in this bug report: http://www.byond.com/forum/post/2273757), my guess is that even though XYZ are 0, the fact that environment is essentially a global var per client that it automatically assumes any sound is 3D for that client.

Code Snippet (if applicable) to Reproduce Problem:
https://ufile.io/4m9p6gjt - Test project with 2 verbs to test

1. Press play_sound. Sounds normal, no environment effects
2. Press play_sound_3d. Sound plays with environmental effects
3. Press play_sound again.

Expected Results:
Sounds plays with no environment effects

Actual Results:
Sound plays with environmental effects. even though XYZ is set to 0.


Most likely is, but the more specific problem is that documentation says that 3d audio effects like environments don't apply to audio with an xyz of 0.

Honestly I just want better audio support, audio is one of the most important methods of making a game engaging, giving players feedback and creating an interesting atmosphere, and right now you can barely do anything