Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial Sound Tracking [TM ONLY] #6748

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Doubleumc
Copy link
Contributor

@Doubleumc Doubleumc commented Jul 18, 2024

About the pull request

Sound position updates as the hearer and source move around.

Can test merge. Needs to be tested at scale, see if the architecture is appropriate for CM's demands.

Don't full merge. While (hopefully) fully functional its current form is meant to be restrained proof-of-concept before integrating other aspects and touching a ton of files. Tracking playing sounds is a powerful tool that opens up a lot of possibilities, if done in a way the server can handle.

Explain why it's good for the game

More immersive sound effects.

Testing Photographs and Procedure

Mob sounds, turf sounds, dropship sounds, interior sounds all appear to be working. Playing 1000 warcries at once hitches on start but updates smoothly. Cannot gauge beyond that with only one client. Profiler logs would be greatly appreciated.

Includes debug admin toggle for the entire spatial update system. Allows round to continue if the system chokes.

Includes debug admin verb to set a minimum sound length for the spatial update system. Exclude shorter/less important sounds to tweak performance.

Changelog

🆑
soundadd: sounds follow their source
/:cl:

@Doubleumc Doubleumc requested a review from fira as a code owner July 18, 2024 05:41
@github-actions github-actions bot added the Sound Blast 5 minutes of bass boosted music to our players label Jul 18, 2024
@cm13-github cm13-github added the Merge Conflict PR can't be merged because it touched too much code label Jul 18, 2024
@cm13-github
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@cm13-github cm13-github removed the Merge Conflict PR can't be merged because it touched too much code label Jul 18, 2024
@cm13-github
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

stores sound lengths in a json file instead of hardcoding it, also includes the generator for the file
Copy link
Contributor

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale beg a maintainer to review your PR label Jul 28, 2024
@cm13-github
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@cm13-github cm13-github added the Merge Conflict PR can't be merged because it touched too much code label Aug 5, 2024
integrate the echo changes
parsing sounds is now the sound_template's job, some more documentation, echo fixes, misc cleanup
@cm13-github
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@cm13-github cm13-github removed the Merge Conflict PR can't be merged because it touched too much code label Aug 5, 2024
@Doubleumc Doubleumc changed the title Spatial Sound Tracking [WIP] Spatial Sound Tracking [TM ONLY] Sep 26, 2024
cm13-github added a commit that referenced this pull request Sep 26, 2024
@Doubleumc
Copy link
Contributor Author

causing sounds to cut off/become delayed (most noticeable when there's a shitton of sounds trying to be played in a short period)

the sounds were super fucked when that OB landed

Making changes based on feedback.

@Doubleumc Doubleumc marked this pull request as draft September 27, 2024 00:22
bitfield defines more specific, no `CHECK_BITFIELD` use
moves debug checks to entry on playsound instead of in soundOutput
rename `process_sound` to `process_template` (since it acts on templates) and `tracked_channels` to `channel_templates` (clearer what it contains)
add environment documentation, clean up some formatting and docs
instead of looping through all players, track which ones need a sound update and only do those
@Doubleumc Doubleumc marked this pull request as ready for review October 3, 2024 08:09
@cmss13-ci cmss13-ci bot removed the Stale beg a maintainer to review your PR label Oct 27, 2024
@Drulikar Drulikar added the Needs Testing Need to test it on the guinea pigs (production server) label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Testing Need to test it on the guinea pigs (production server) Sound Blast 5 minutes of bass boosted music to our players
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants