Gale Andrews wrote:Robert J. H. wrote:Gale Andrews wrote:With WASAPI loopback or WASAPI stereo mix, overdub-recording playback of a selection, I get about 1300 samples of absolute silence at the start, about 200 samples of latency (noise) then the recording which is slightly truncated (though the whole recorded track is longer than the generated track).
Have you already addressed the development department with this issue or should we first gather more data?
After reboot and repeating a WASAPI loopback overdub recording of a tone, I only got the small bit of preceding noise on one attempt of six. Otherwise the preceding latency was entirely absolute silence. So it isn't completely consistent.
If WASAPI and WDM-KS present the latency as silence padding (or mostly silence and some noise), is that better or worse than presenting it entirely as noise?
Digital silence can of course be detected in the easiest manner.
The question is which latency the digital silence represents. It seems to be the total amount for Wasapi loop back. However, this may be different for other sources that are eventually the only ones that make sense in a overdub context.
Intermediate summary:
- An automatic latency correction is primerly used for overdubbing with real sources such as line-in and microphone.
- We don't know the exact onset of the recorded source.
- The output does not leak into the input.
- Backing track and recording are therefore not correlated (e.g. click track and ocarina)
- We don't know the signal to noise ratio of the recording.
- The latency can vary from recording to recording and from configuration to configuration.
- A general latency correction in preferences isn't reliable.
- The recording is sometimes truncated and additionally extended by presumably one buffer length.
- A lot of Tracks produce a very long latency and cpu load.
All would be simple if we could "emulate" an impulse that goes from (before) the play back directly to the input side as if it came from the mic for example, i.e. the first sample of the play back would produce a click on the input side.
In my opinion, we have still to evaluate a time measurement scheme. We have already track of the current audio position, how reliable is this value during recording?
I have to look where this value is taken from.