-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Underflows on input (analogue glitch, S/PDIF discontinuity) #134
Comments
Have confirmed that underflow occurs (in the recordings attached to this message, the underflow buffer contained non-zero data and appears as sample values of -0.66) This has been seen on Windows and MacOS, with any xk_316_mc config, and running at any sample rate. Before it goes into underflow and/or after coming out, there can be a frame of samples which look valid for the frequency but are out of phase with the expected samples at that point (ie. it's a correct frame received at an incorrect time). Attaching some examples: |
xsig now prints the sample values that it sees after a discontinuity, and it looks like this underflow can also happen on S/PDIF input:
Frame: N, N+14, nine frames of zeros, N+15, ... |
These underflow glitches can result in an FFT which is very close to the noise threshold. I have captured one that only crossed the threshold for four of the eight channels, but it includes the same out-of-phase frame and frames of zeros as in the other examples in this issue.
All eight channels will have had an underflow (nine frames of zeros in this case), but some channel's FFT didn't have a high enough level of noise to trigger a failure. So the glitches that are detected near the noise threshold are not spurious. |
On xk_316_mc, no specific config, xsig sometimes detects a glitch in the analogue input signals (sine waves generated by the audio analyzer). The glitch can happen at any point in time during the stream, and occurs at the same time on all channels.
This zip contains two stereo WAV files with examples of the glitch at 176400
glitch-wavs.zip
In both cases, there was one frame (22 samples) of incorrect data, three frames of zeros, then one more frame of incorrect data, before the sine waves continue correctly.
Will try to determine if we are going into underflow.
The text was updated successfully, but these errors were encountered: