PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.52k stars 306 forks source link

paqa_latency report streamInfo latency is zero on MacOS #982

Open philburk opened 6 days ago

philburk commented 6 days ago

paqa_latency is reporting zero latency on all devices for MacOS

To Reproduce Steps to reproduce the behavior. Include code if applicable.

  1. bin/paqa_latency

Expected behavior Tests to pass with actual latency close to suggested latency.

Actual behavior Got a latency of 0.0

------------------------ paqaCheckMultipleSuggested - OUTPUT
 lowLatency  = 0.00455782
 highLatency = 0.0147166
 numChannels = 2
 sampleRate  = 44100
   suggestedLatency[0] = 0.0046
          finalLatency = 0.0000
./qa/paqa_latency.c:296 - ERROR - final latency should be close to suggested latency, expected 0.004558, got 0.000000, tol=0.000456
OUTPUT CHECK FAILED !!! #3: 'ZOOM AMS-22 Driver'

Desktop (please complete the following information):

philburk commented 6 days ago

Oddly, the tests after paqaCheckMultipleSuggested are showing non-zero latency!

------------- Try a very small buffer.
Stream parameter: suggestedOutputLatency = 0.0045625
Stream parameter: user framesPerBuffer = 9
Stream info: inputLatency  = 0
Stream info: outputLatency = 0.00472917    <==!!! non-zero