Commit bc9e0748 authored by Max Kellermann's avatar Max Kellermann

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.
parent 80471025
...@@ -758,12 +758,8 @@ OSXOutput::Open(AudioFormat &audio_format) ...@@ -758,12 +758,8 @@ OSXOutput::Open(AudioFormat &audio_format)
#endif #endif
ring_buffer = new boost::lockfree::spsc_queue<uint8_t>(ring_buffer_size); ring_buffer = new boost::lockfree::spsc_queue<uint8_t>(ring_buffer_size);
status = AudioOutputUnitStart(au);
if (status != 0)
Apple::ThrowOSStatus(status, "Unable to start audio output");
pause = false; pause = false;
started = true; started = false;
} }
size_t size_t
......
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