From bc9e074822d03e38cffcfd6bff06888b9a5ec259 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Jul 2020 15:21:19 +0200 Subject: [PATCH] output/osx: postpone start until the first Play() call Wait until there is some data; don't let our render callback be invoked without any data. --- src/output/plugins/OSXOutputPlugin.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index bcd1008cf..dfa042299 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -758,12 +758,8 @@ OSXOutput::Open(AudioFormat &audio_format) #endif ring_buffer = new boost::lockfree::spsc_queue(ring_buffer_size); - status = AudioOutputUnitStart(au); - if (status != 0) - Apple::ThrowOSStatus(status, "Unable to start audio output"); - pause = false; - started = true; + started = false; } size_t