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

Refactor MixerState #94

Merged
merged 7 commits into from
Apr 23, 2020
Merged

Refactor MixerState #94

merged 7 commits into from
Apr 23, 2020

Conversation

markspolakovs
Copy link
Member

This extracts the actual audio handling out from MixerState into a separate module with two classes, Player and AudioEngine, because separation of concerns good and 1,000 line file bad.

This extracts the actual audio handling out from MixerState into a separate module with two classes, Player and AudioEngine, because separation of concerns good and 1,000 line file bad.
}
}

export const engine = new AudioEngine();
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: would audioEngine not be a better name?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, will change

src/optionsMenu/MicTab.tsx Show resolved Hide resolved
src/mixer/audio.ts Outdated Show resolved Hide resolved
@markspolakovs markspolakovs merged commit c5da634 into master Apr 23, 2020
@markspolakovs markspolakovs deleted the markspolakovs-mixer-refactor branch April 23, 2020 20:10
markspolakovs added a commit that referenced this pull request Apr 24, 2020
* Refactor MixerState

This extracts the actual audio handling out from MixerState into a separate module with two classes, Player and AudioEngine, because separation of concerns good and 1,000 line file bad.

* Remove unnecessary module

* Fix mic calibration

* rename engine to audioEngine

* Fix a butchered merge

* remove a bunch of unused imports
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