diff options
author | Max Kellermann <max@musicpd.org> | 2021-03-08 22:29:14 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-03-08 22:29:33 +0100 |
commit | d6fb07a3e48873f4706cd718a504582b04278f31 (patch) | |
tree | 80b4ecc5dc2bd242eb57eb23d83ef59dd6fdfd3d /src | |
parent | 01d3c2705e93ce4cf83cb2ed223ed6311ef19fd5 (diff) |
output/wasapi: start the WasapiOutputThread in its constructor
Diffstat (limited to 'src')
-rw-r--r-- | src/output/plugins/wasapi/WasapiOutputPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx index 4f6068a5e..d049ad802 100644 --- a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx +++ b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx @@ -187,6 +187,7 @@ public: spsc_buffer(_buffer_size_in_frames * 4 * _frame_size) { SetEventHandle(client, event.handle()); + Start(); } void Finish() noexcept { @@ -535,8 +536,6 @@ WasapiOutput::DoOpen(AudioFormat &audio_format) watermark = buffer_size_in_frames * 3 * FrameSize(); thread.emplace(*client, std::move(render_client), FrameSize(), buffer_size_in_frames, is_exclusive); - - thread->Start(); } void |