-
Notifications
You must be signed in to change notification settings - Fork 4
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
Sine example fails #9
Comments
Thanks for opening the issue, there is a problem with the PulseAudio backend but I haven't found the problem, yet. See #7 for details. |
Oops, looks like ALSA is broken, too. Can you try JACK? |
Thanks for your quick response! So, I installed JACK (
This caused another backend to be available in rsoundio, but it was PulseAudio, not JACK. I'm pretty confused as to why. PulseAudio actually produces a sine tone. It does have some crackling, unlike sio_sine, and the crackling gets a lot worse with --release turned on. The crash at the end still happens with PulseAudio. JACK on the other hand didn't show up in sio_sine nor rsoundio. What I did was start qtjackctl and press start, which spins up three As an aside: I thought maybe I have to rebuild libsoundio for JACK to be recognized by it, but JACK is also not found by the libsoundio CMake script:
|
The libjack-jackd2-dev package was what was missing for libsoundio to compile with JACK; playing a sine with |
You can try to change the CMake flags in |
You're right, I needed to do By the way, my problem with PulseAudio is not identical to the one in #7, for me it's just crackling, although both might of course have a common cause. ALSA also has different symptoms. |
I would love to fix this issue, actually I planned to do for quite some time, but I am quite busy with work and other things. |
I understand, I am in a similar position or I would try looking into it myself. |
Great, don't hesitate to ask if you've any questions. |
The sine example produces only glitchy stuttering for me and appears to crash. Console output:
You can see that I inserted a print statement to see the number of available backends, but other than ALSA, it's just the Dummy. I also tried changing the SioFormat to Float64LE, but that didn't work.
Libsoundio's
sio_sine
test runs fine and sounds clear. It also reports a different backend that's not available in rsoundio:uname -a
isLinux [computer name] 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
and the rustc version is1.15.1 (021bd294c 2017-02-08)
I'm new to audio programming, so I hope this is helpful and not just a simple mistake on my side. If this issue is missing any information, I'm happy to clarify.
The text was updated successfully, but these errors were encountered: