Commit d6fb07a3 authored by Max Kellermann's avatar Max Kellermann

output/wasapi: start the WasapiOutputThread in its constructor

parent 01d3c270
...@@ -187,6 +187,7 @@ public: ...@@ -187,6 +187,7 @@ public:
spsc_buffer(_buffer_size_in_frames * 4 * _frame_size) spsc_buffer(_buffer_size_in_frames * 4 * _frame_size)
{ {
SetEventHandle(client, event.handle()); SetEventHandle(client, event.handle());
Start();
} }
void Finish() noexcept { void Finish() noexcept {
...@@ -535,8 +536,6 @@ WasapiOutput::DoOpen(AudioFormat &audio_format) ...@@ -535,8 +536,6 @@ WasapiOutput::DoOpen(AudioFormat &audio_format)
watermark = buffer_size_in_frames * 3 * FrameSize(); watermark = buffer_size_in_frames * 3 * FrameSize();
thread.emplace(*client, std::move(render_client), FrameSize(), thread.emplace(*client, std::move(render_client), FrameSize(),
buffer_size_in_frames, is_exclusive); buffer_size_in_frames, is_exclusive);
thread->Start();
} }
void void
......
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