all repos — mgba @ fe7deb0aabdcbc039a3981956b1421b317429b3e

mGBA Game Boy Advance Emulator

Only try to stop audio output if there is an audio output device
Jeffrey Pfau jeffrey@endrift.com
Tue, 22 Jul 2014 00:44:43 -0700
commit

fe7deb0aabdcbc039a3981956b1421b317429b3e

parent

8ff6d778690fa215f778f7e8b22b59b38f19bd7a

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/AudioProcessor.cppsrc/platform/qt/AudioProcessor.cpp

@@ -52,7 +52,9 @@ m_audioOutput->start(m_device);

} void AudioProcessor::pause() { - m_audioOutput->stop(); + if (m_audioOutput) { + m_audioOutput->stop(); + } } void AudioProcessor::setBufferSamples(int samples) {