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

After speaker.end(), coreaudio.c continuously reports buffer underflow #183

Open
cjheath opened this issue Nov 6, 2024 · 1 comment
Open

Comments

@cjheath
Copy link

cjheath commented Nov 6, 2024

(Sorry for no isolated test; this program requires a HackRF. I didn't write it and don't know Node well enough to trust myself to write an isolated example)

In the FM receiver here, when the receiver is interrupted with SIGINT, it calls speaker.close.

The coreaudio module then continuously reports the following error, instead of just stopping output:
[../deps/mpg123/src/output/coreaudio.c:81] warning: Didn't have any audio data in callback (buffer underflow)

I can't see where the problem lies or I would offer a PR to fix it.

@JasonBenn
Copy link

JasonBenn commented Dec 4, 2024

I forked the repo to include both @zackradisic's patch (#18 (comment)) and the 12 commits to main since then: https://github.com/JasonBenn/node-speaker

Update your dependency to "speaker": "github:JasonBenn/node-speaker", and reinstall packages to use it.

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

No branches or pull requests

2 participants