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

feat: Stereo pan option for play() #304

Closed
dragoncoder047 opened this issue Aug 3, 2024 · 1 comment · Fixed by #331
Closed

feat: Stereo pan option for play() #304

dragoncoder047 opened this issue Aug 3, 2024 · 1 comment · Fixed by #331

Comments

@dragoncoder047
Copy link
Contributor

We already have a volume option for play()ing a sound. Can stereo pan be added? There is a web audio node to handle this, it just needs to be put in the pipeline.

This would be useful when a sound is triggered by some physical action, and it would make sense to have the sound appear to come from the location of that action. For example, if an enemy spawned offscreen to the left, the player could be cued that it is to the left by the spawn sound coming from the left speaker. (This is particularly evident when you are using headphones.)

@amyspark-ng
Copy link
Contributor

sounds like a cool feature

dragoncoder047 added a commit to dragoncoder047/kaplay that referenced this issue Aug 7, 2024
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 a pull request may close this issue.

2 participants