output/wasapi: start the WasapiOutputThread in its constructor
This commit is contained in:
parent
01d3c2705e
commit
d6fb07a3e4
@ -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)
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user