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

AudioCommon: Split Initialization #9603

Merged
merged 1 commit into from Mar 24, 2021
Merged

Conversation

Bonta0
Copy link
Contributor

@Bonta0 Bonta0 commented Mar 21, 2021

This splits SoundStream initialization in two parts, allowing HW::Init to set sample rates and addresses a comment that's been around for a while

@JosJuice
Copy link
Member

Perhaps it would be good to leave a comment about why PostInitSoundStream is a separate function that has to be called later, but LGTM otherwise.

@BhaaLseN
Copy link
Member

LGTM, aside from Jos' remark.


void PostInitSoundStream()
{
// This needs to be called after HW::Init where input sample rates are set
Copy link
Member

Choose a reason for hiding this comment

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

This should probably mention AudioInterface::Init, should it? HW::Init isn't wrong (because it calls AudioInterface::Init), but it should only be a secondary mention due to the connection in EmuThread.
Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didnt want to be too specific about AudioInterface::Init since #9600 also takes advantage of this which would make the comment no longer correct, so I guess I'll just update the comment in that PR as well

@JosJuice JosJuice merged commit fa04e5a into dolphin-emu:master Mar 24, 2021
10 checks passed
@Bonta0 Bonta0 deleted the audio-init branch May 19, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants