dep/cubeb: Sync to 19fcbef
And apply PR #740 (Re-enable and polish IAudioClient3 to achieve lower latencies). `*latency_frames = min_period;` in wasapi_get_min_latency was changed to `*latency_frames = hns_to_frames(params.rate, min_period_rt);`, as otherwise it reports in mixer frames, not stream frames.
This commit is contained in:
@@ -42,6 +42,13 @@ public:
|
||||
{
|
||||
return (shared_state.load(std::memory_order_relaxed) & BACK_DIRTY_BIT) != 0;
|
||||
}
|
||||
// Reset state and indices to initial values.
|
||||
void invalidate()
|
||||
{
|
||||
shared_state.store(0, std::memory_order_release);
|
||||
input_idx = 1;
|
||||
output_idx = 2;
|
||||
}
|
||||
|
||||
private:
|
||||
// Publish a value to the consumer. Returns true if the data was overwritten
|
||||
|
||||
Reference in New Issue
Block a user