Use bigger threshold to fix odd latency calculations.
Use low default latency for loopback.
This commit is contained in:
parent
8f6b491bae
commit
8b40f6d9e5
3 changed files with 10 additions and 7 deletions
|
|
@ -494,7 +494,7 @@ int PaQa_MeasureLatency( PaQaRecording *recording, PaQaTestTone *testTone, PaQaA
|
|||
PaQa_EraseBuffer( buffer, cycleSize, testTone->samplesPerFrame );
|
||||
PaQa_MixSine( &generator, buffer, cycleSize, testTone->samplesPerFrame );
|
||||
|
||||
threshold = cycleSize * 0.01;
|
||||
threshold = cycleSize * 0.02;
|
||||
analysisResult->latency = PaQa_FindFirstMatch( recording, buffer, cycleSize, threshold );
|
||||
QA_ASSERT_TRUE( "Could not find the start of the signal.", (analysisResult->latency >= 0) );
|
||||
analysisResult->amplitudeRatio = PaQa_CompareAmplitudes( recording, analysisResult->latency, buffer, cycleSize );
|
||||
|
|
|
|||
Loading…
Reference in a new issue