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

[feature request]: volume options and support for rodio spatial #13

Open
mavdotjs opened this issue Jun 29, 2023 · 0 comments
Open

[feature request]: volume options and support for rodio spatial #13

mavdotjs opened this issue Jun 29, 2023 · 0 comments

Comments

@mavdotjs
Copy link

mavdotjs commented Jun 29, 2023

Examples

import { play, playSpatial } from '...';
await play('sound.mp3', { volume: 0.3 /* 30% volume */ });
await playSpatial('otherSound.mp3', {
  soundPos: [1, 2, 3], // position of sound
  pos: [1, 1, 1] // position of the user listening to the sound
})
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

No branches or pull requests

1 participant