output/wasapi: remove the broken Delay() calculation code

This code is complicated - and broken: the producer thread is not
allowed to call consumer methods.  Also the code is not necessary
because this plugin implements Interrupt().
This commit is contained in:
Max Kellermann 2021-03-10 17:38:28 +01:00
parent 3e484637f9
commit 579428172e
1 changed files with 1 additions and 9 deletions

View File

@ -601,15 +601,7 @@ WasapiOutput::Delay() const noexcept
return std::chrono::seconds(1);
}
assert(thread);
const size_t data_size = thread->spsc_buffer.read_available();
const size_t delay_size = std::max(data_size, watermark) - watermark;
using s = std::chrono::seconds;
using duration = std::chrono::steady_clock::duration;
auto result = duration(s(delay_size)) / device_format.Format.nAvgBytesPerSec;
return result;
return std::chrono::steady_clock::duration::zero();
}
size_t