output/wasapi: start the WasapiOutputThread in its constructor

This commit is contained in:
Max Kellermann 2021-03-08 22:29:14 +01:00
parent 01d3c2705e
commit d6fb07a3e4
1 changed files with 1 additions and 2 deletions

View File

@ -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