Cancel desktop decoder probing when a call stops
This commit is contained in:
1 parent
c211e17af9
commit
7b341d9f4f
4 files changed
+22
-9
No files matched your search
@@ -35,7 +35,7 @@ int main() {
|
||||
assert(capture.captureLatency.low == 96000 && capture.captureLatency.high == 100000);
|
||||
assert(capture.captureLatency.count == 3 && capture.captureLatency.average() == 97333);
|
||||
assert(capture.captureBlock.low == 10000 && capture.captureBlock.high == 10000);
|
||||
report(devices, now(CLOCK_MONOTONIC), 1.0);
|
||||
report(devices, wallNow(), 1.0);
|
||||
timing.first_us = 1034000; timing.missing = 0; timing.measured = 0;
|
||||
audio_diag_capture_clock(nullptr, &timing);
|
||||
assert(take(e)); consume(e, devices);
|
||||
@@ -54,7 +54,7 @@ int main() {
|
||||
assert(capture.playbackLatency.low == -1000 && capture.playbackLatency.high == 30000);
|
||||
assert(capture.playbackBlock.high == 25000 && capture.playbackMaxConverter == 1000);
|
||||
assert(capture.playbackLatency.average() == 14500 && capture.playbackBlock.low == 20000);
|
||||
report(devices, now(CLOCK_MONOTONIC), 1.0);
|
||||
report(devices, wallNow(), 1.0);
|
||||
assert(capture.playbackBlocks == 0 && capture.playbackLatency.count == 0 && capture.playbackBlock.high == 0);
|
||||
std::vector<std::thread> workers;
|
||||
for (int p = 0; p < producers; ++p) workers.emplace_back([p, &done]() {
|
||||
|
||||
Reference in new issue
Block a user