ID:2967352
 
Resolved
Objects that moved off the map didn't set their relative sound position correctly for atom-linked sounds. Now they have an infinite distance and should mute.
BYOND Version:516.1658
Operating System:Windows 10 Pro
Web Browser:Firefox 136.0
Applies to:Dream Seeker
Status: Resolved (516.1659)

This issue has been resolved.
Descriptive Problem Summary: Wanted to do a rudimentary test using the new atom.sound features, but instead of fading completely out the sound persists at an extremely low volume even after leaving view of the atom. In addition, the sound seems to be 'phantoming' from a square off the map to the left of the sounds origin, and after a period of time off screen will sometimes suddenly start playing at max volume out of the right ear no matter where you are directionally until you make your way back into view of the atom.

Numbered Steps to Reproduce Problem:
1. Create a sound datum.
2. Attach it to an atom, and attach the sound.atom to the atom.
3. Send the sound to the client.
4. Walk around.

Code Snippet (if applicable) to Reproduce Problem:
https://drive.google.com/file/d/ 1YGPpXP0sdu4h-2aMr2D4KYoxIUabaHUX/view?usp=sharing
Here's the source I made to make sure it wasn't a project issue.

Expected Results:
The sound should cut out when the atom the sound is bound to is outside of the client's view.

Actual Results:
The sound persists at a low volume out of one ear, and can suddenly jump scare you out of the other ear.

Does the problem occur:
Every time? Or how often?
Everytime
In other games?
I have tested it in three projects, including the one included and it always happens to me.
In other user accounts?
I have tested on a key and a guest account and it occurs on both.
On other computers?
I don't have another computer to test unfortunately.

When does the problem NOT occur?
Initially it appears to never not happen, but sometimes the faint sound can stop after an extended period of time, until you approach the atom again, which is the desired behavior.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
N/A

Workarounds:
Manually null and play the sound as you get closer and further.
Lummox JR resolved issue with message:
Objects that moved off the map didn't set their relative sound position correctly for atom-linked sounds. Now they have an infinite distance and should mute.