Skip to content
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

Indicate audio FIFO underflow/overflow in GUI #1887

Merged
merged 2 commits into from Nov 14, 2023
Merged

Conversation

srcejon
Copy link
Collaborator

@srcejon srcejon commented Nov 13, 2023

Currently, there appears to be no indication if audio underflow occurs. There's a message in the log if overflow occurs.

This PR indicates if overflow/underflow has occurred in the last second, by setting the background of the audio mute button to yellow.

image

Currently the patch is just for WFM Demod - but if you think this is the way to go, I can add to other demods.

Although much of the time underflows are inaudible (to my ears at least), I think it's useful to indicate there's a problem for when audio is being piped to an external demod, as it may be more problematic. (Good example of when they occur, is with some RTL SDRs running at 3.2MSa/s - as not all can quite do it).

The patch also changes how the audio output device works slightly, to try to avoid some zero padding. Currently, the readData(char* data, qint64 maxLen) function always returns the indicated maxLen amount of data, and zero pads if there isn't enough data in the audio FIFOs. The patch changes this, so that zeros are only output if there is no data in any of the audio FIFOs. If there is some, then we just output what is available, giving a bit more time for some more to be added to the FIFOs.

@f4exb f4exb merged commit fe12d7f into f4exb:master Nov 14, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants