Merge pull request #14528 from jordan-woyak/gba-mixer-fix

AudioCommon/Mixer: Fix integrated GBA sample rate calculation and inverted stereo channels.
This commit is contained in:
JMC47 authored and GitHub committed 2026-03-30 12:34:16 -04:00
commit e0fda9bb54
3 files changed
+87 -73

No files matched your search

+1 -2
View File
@@ -434,8 +434,7 @@ void Core::SetAVStream()
m_stream.audioRateChanged = [](mAVStream* stream, unsigned rate) {
auto* core = static_cast<AVStream*>(stream)->core;
auto* const sound_stream = core->m_system.GetSoundStream();
sound_stream->GetMixer()->SetGBAInputSampleRateDivisors(
core->m_device_number, Mixer::FIXED_SAMPLE_RATE_DIVIDEND / rate);
sound_stream->GetMixer()->SetGBAInputSampleRate(core->m_device_number, rate);
};
m_stream.postAudioBuffer = [](mAVStream* stream, mAudioBuffer* audio_buffer) {
size_t sample_count = mAudioBufferAvailable(audio_buffer);