-
Notifications
You must be signed in to change notification settings - Fork 167
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
Add option for passing AudioContext as WebAudioOptions #505
Conversation
🦋 Changeset detectedLatest commit: 090843f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -773,7 +773,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>) | |||
|
|||
this.participants.clear(); | |||
this.activeSpeakers = []; | |||
if (this.audioContext) { | |||
if (this.audioContext && typeof this.options.expWebAudioMix === 'boolean') { |
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.
would it be better to check for equality? this.audioContext !== this.options.expWebAudioMix
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 agree, the type check is there to ensure typescript doesn't complain as the expWebAudioMix
can be either boolean or an object. I'll think a bit more about how to make this nicer in general. Even though we use the same pattern for adaptive stream settings, it might make more sense to change the possible values for expWebAudioMix
* add audiocontext as webaudioOptions * create new audio ctxt if not provided * changeset
* add audiocontext as webaudioOptions * create new audio ctxt if not provided * changeset
* add audiocontext as webaudioOptions * create new audio ctxt if not provided * changeset
No description provided.