all repos — mgba @ 24270af49bb8d1cc4b114921c17978824e8d8881

mGBA Game Boy Advance Emulator

Qt: Remove audio buffer sizing in AudioProcessorQt
Vicki Pfau vi@endrift.com
Fri, 24 Mar 2017 13:59:21 -0700
commit

24270af49bb8d1cc4b114921c17978824e8d8881

parent

03f96911bb66a989a45b9562b508580ef7f32fb3

2 files changed, 1 insertions(+), 7 deletions(-)

jump to
M CHANGESCHANGES

@@ -74,6 +74,7 @@ - GBA Video: Optimize when BLD* registers are written frequently

- Core: Cores can now have multiple sets of callbacks - GBA: Ignore invalid opcodes used by the Wii U VC emulator - Qt: Remove audio thread + - Qt: Remove audio buffer sizing in AudioProcessorQt 0.5.2: (2016-12-31) Bugfixes:
M src/platform/qt/AudioProcessorQt.cppsrc/platform/qt/AudioProcessorQt.cpp

@@ -58,7 +58,6 @@ }

m_device->setInput(input()); m_device->setFormat(m_audioOutput->format()); - m_audioOutput->setBufferSize(input()->core->getAudioBufferSize(input()->core) * 4); m_audioOutput->start(m_device); return m_audioOutput->state() == QAudio::ActiveState;

@@ -71,12 +70,6 @@ }

} void AudioProcessorQt::setBufferSamples(int samples) { - AudioProcessor::setBufferSamples(samples); - if (m_audioOutput) { - m_audioOutput->stop(); - m_audioOutput->setBufferSize(samples * 4); - m_audioOutput->start(m_device); - } } void AudioProcessorQt::inputParametersChanged() {