-
Notifications
You must be signed in to change notification settings - Fork 105
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
Ensure call sound effects are played over the correct sink #2863
Conversation
src/useAudioContext.test.tsx
Outdated
|
||
/** | ||
* Test explanation. | ||
* This test suite checks that the useReactions hook appropriately reacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong
src/useAudioContext.tsx
Outdated
|
||
type PrefetchedSounds<S extends string> = Promise<Record<S, ArrayBuffer>>; | ||
|
||
// We prefer to load these sounds ahead of time, so there |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the direction of the abstraction that the refactor has taken. 👍
A few questions and clean up needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a settings wording tweak. But now looks good 👍
This PR refactors much of the work I did on sound effects to make them play over an AudioContext instead, which let's us pick a preferred sync.
To fix: