Commit 8125a5dd authored by Max Kellermann's avatar Max Kellermann

output/osx: don't uninitialize AudioUnit if restart fails

This shall be done by Close(), which will be called automatically after an error.
parent 154170e4
......@@ -763,10 +763,9 @@ OSXOutput::Play(const void *chunk, size_t size)
assert(size > 0);
if (pause) {
OSStatus status = AudioOutputUnitStart(au);
if (status != 0) {
AudioUnitUninitialize(au);
if (status != noErr)
throw std::runtime_error("Unable to restart audio output after pause");
}
pause = false;
}
#ifdef ENABLE_DSD
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment