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/Mixer: Allow input sample rate changes #666

Merged
merged 1 commit into from Jul 26, 2014

Conversation

booto
Copy link
Contributor

@booto booto commented Jul 24, 2014

This patch informs the Mixer if the sampling rate is changed in AI. Fixes some issues when the DSP is used for 48000Hz audio (LLE only).

No known regressions.

@JMC47
Copy link
Contributor

JMC47 commented Jul 24, 2014

Fixes garbled audio issues in LLE for the following games. Regression began in 4.0-1970 (11d304a)

NHL Hitz 2002 (gc) GNHE5d
TMNT:Mutant Melee (gc) GE5EA4
Frogger Beyond (gc) GFGEA4
Monsters, Inc. Scream Arena (gc) GMNE78
Zapper (gc) GZPE70
Dave Mirra Pro BMX 2 (gc) GBXE51

@phire
Copy link
Member

phire commented Jul 24, 2014

LGTM

@booto
Copy link
Contributor Author

booto commented Jul 24, 2014

Just changed the new functions to match naming style of existing stuff, no functionality change.

This might be OK for merge consideration now.

@@ -41,6 +41,9 @@ class CMixer {
virtual void PushSamples(const short* samples, unsigned int num_samples);
virtual void PushStreamingSamples(const short* samples, unsigned int num_samples);
unsigned int GetSampleRate() const { return m_sampleRate; }

void SetDInputSampleRate(unsigned int rate);

This comment was marked as off-topic.

This comment was marked as off-topic.

@Sonicadvance1
Copy link
Contributor

LGTM

@JMC47
Copy link
Contributor

JMC47 commented Jul 26, 2014

Retested, everything LGTM. Nice regression to fix.

delroth added a commit that referenced this pull request Jul 26, 2014
AudioCommon/Mixer: Allow input sample rate changes
@delroth delroth merged commit 6bd5fb3 into dolphin-emu:master Jul 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants