mirror of https://github.com/mgba-emu/mgba.git
Qt: Remove audio buffer sizing in AudioProcessorQt
This commit is contained in:
parent
03f96911bb
commit
24270af49b
1
CHANGES
1
CHANGES
|
@ -74,6 +74,7 @@ Misc:
|
|||
- 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:
|
||||
|
|
|
@ -58,7 +58,6 @@ bool AudioProcessorQt::start() {
|
|||
|
||||
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::pause() {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue