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

hold single AudioContext instance #1787

Merged
merged 6 commits into from
Nov 18, 2018
Merged

Conversation

jerch
Copy link
Member

@jerch jerch commented Nov 14, 2018

Fixes #1694.

It should be save to just hold one AudioContext instance for all terminal instances within a document (created on the first bell request on SoundManager).

NB: The change will not work if there are still more audio contexts spawned than allowed on integrator side (e.g. vscode). If thats an issue we might want to refactor SoundManager to take an optional argument context. This way the integrator can maintain the audio contexts itself. Added optional ctor argument.

@jerch
Copy link
Member Author

jerch commented Nov 14, 2018

Up for review.

@jerch jerch self-assigned this Nov 15, 2018
@jerch jerch added this to the 3.9.0 milestone Nov 15, 2018
src/SoundManager.ts Outdated Show resolved Hide resolved
@jerch
Copy link
Member Author

jerch commented Nov 18, 2018

Ok done.

@jerch jerch merged commit 02732d9 into xtermjs:master Nov 18, 2018
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