|
Wave Arts VQE
1.00
Voice Quality Enhancement
|
AecLatCal object measures I/O latency. More...
#include <AecLatCal.h>
Public Attributes | |
| AecLatCalParam | param |
| parameters, copied | |
| int | blockIndex |
| count blocks | |
| int | numBlocks |
| number of calibration blocks | |
| float * | buf |
| buffer to hold calibration recording | |
| float * | sig |
| cal beep signal, one block in length | |
| int | latency |
| detected latency in samples = current delay in far delay buffer | |
| int | isComplete |
| T/F cal has completed. | |
AecLatCal object measures I/O latency.
AecLatCal measures the I/O latency by playing a short tone (typically 1 kHz for 20 msec duration) followed by several hundred milliseconds of silence, recording the result, and then analyzing the recording to detect the tone. The tone detection is very simplistic; peak detection after filtering with a second order bandpass filter. Much better would be a matched filter, which works well even if the recording sampling rate differs slightly. This is on the TO DO list.
Only supports monophonic input. If multiple output channels are specified, the tone is played on the left channel.
1.7.5.1