Skip to content

fix: implement MCMP stereo pan support#26

Merged
ctoth merged 1 commit intomasterfrom
fix/mcmp-pan
Feb 19, 2026
Merged

fix: implement MCMP stereo pan support#26
ctoth merged 1 commit intomasterfrom
fix/mcmp-pan

Conversation

@daiverd
Copy link
Contributor

@daiverd daiverd commented Feb 19, 2026

Summary

  • Map pan values from server (-100 to 100) to cacophony's stereoPan (-1 to 1)
  • Apply pan to sounds on initial play via sound.stereoPan
  • Update existing playbacks when pan changes on already-playing sounds

Test plan

  • Trigger sound with pan -100 (full left) - verified audio in left channel
  • Trigger sound with pan 100 (full right) - verified audio in right channel
  • Trigger sound with pan 0 (center) - verified centered audio
  • Update pan on playing sound - verified live pan shift without restart

Pan values from server (-100 to 100) are now mapped to cacophony's
stereoPan (-1 to 1). Updates apply to both new sounds and sounds
already playing.
@ctoth ctoth merged commit 3a53ace into master Feb 19, 2026
1 check passed
github-actions bot pushed a commit that referenced this pull request Feb 19, 2026
fix: implement MCMP stereo pan support 3a53ace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments