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

Python CLI has lots of underrun issues #261

Open
andrewfer000 opened this issue Mar 26, 2021 · 1 comment
Open

Python CLI has lots of underrun issues #261

andrewfer000 opened this issue Mar 26, 2021 · 1 comment
Labels

Comments

@andrewfer000
Copy link

Hi, so I decided to mess with the python cli and there is a problem. A pretty nasty one too.

This message will pop up
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred

The audio will become clickly and bad even when the signal is strong and the C program works fine. Can a python pro that is a part of this project help figure this out? It is also what is causing this issue on nrsc5-gui so if the cli code could be fixed I can likely just use that in this program and boom! problem solved! So let's fix this!

@argilo
Copy link
Collaborator

argilo commented Sep 16, 2021

This stems from the fact that nrsc5 outputs audio as soon as it is able, rather than buffering & delaying it as real receivers do (to synchronize the analog & digital signals, among other purposes). The C version of the code works around this by inserting silence at the start of the audio, but this is not ideal. I think nrsc5 should implement delay as specified in the NRSC-5 standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants