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

Ensure call sound effects are played over the correct sink #2863

Merged
merged 31 commits into from
Dec 9, 2024

Conversation

Half-Shot
Copy link
Member

@Half-Shot Half-Shot commented Dec 3, 2024

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:

  • Join/leave sounds
  • Hand raised sounds
  • Reaction sounds


/**
* Test explanation.
* This test suite checks that the useReactions hook appropriately reacts
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wrong


type PrefetchedSounds<S extends string> = Promise<Record<S, ArrayBuffer>>;

// We prefer to load these sounds ahead of time, so there
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong comment?

@Half-Shot Half-Shot marked this pull request as ready for review December 5, 2024 10:15
@Half-Shot Half-Shot requested a review from a team as a code owner December 5, 2024 10:15
@Half-Shot Half-Shot requested a review from hughns December 5, 2024 10:15
Copy link
Member

@hughns hughns left a 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.

Copy link
Member

@hughns hughns left a 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 👍

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