-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Audio output "hiss" when should be silent #380
Comments
Is the hiss still present if you add
|
Yes that seems to have fixed it :-) Should I recommend that as the fix on the forum or is there more to be done to find a better fix ? I assume there is a down side to disabling the dither ? |
Disabling it means that the noise floor becomes a function of the input signal. In effect you get slightly more distortion without dither than with. |
Ok, but is it the right solution in situations where silence is going to be produced by the application ? |
The dither is added as a fractional bit (out of the 11 bits of PWM) in range [0..1). Are you sure the silence being output is zero? |
I'm going to say "yes" as the hiss only starts up after the recorded samples have stoppped. (My app has short sound effects for button presses etc). When no effects are playing the output buffer is all zeros. And to be 100% sure I just changed my code to write all zeros into the sample buffer just before the ALSA write is called.... And HISS is still present when dither is enabled. PS: Problem is not present using HDMI or external USB sound card. |
You say you already have code that exhibits this - can you post (or gist) this? |
I do, but it is part of a large application. I'll chop out the sound stuff for you. |
I realised there is no need to write any code.... Just run this... PeterO |
Neat, but I'm surprised it works - I thought /dev/null returned EOF, whereas /dev/zero returns zeroes. |
I typed /dev/null by mistake and I guess you got a notification before I changed it to /dev/zeros :-) Grrrr.... /dev/zero |
I can replicate the effect. |
Adding the line to disable audio dither seems to work great at silencing the hiss between programs, and fixes an issue with emulation station. However I'm continuing to find is that the hiss remains whilst music is playing. This can be noticed when running any of the python games provided with Raspbian. |
To be more specific there is no hiss on the 3.5mm audio line whilst sound is playing in emulators on Retro-Pie distribution, but there is whist sounds are played on Raspbian. There must be a configuration setting that differs between the two that breaks the sound quality in Raspbian. I see that retroarch manages the sound on the retro-pie distribution. Any ideas? Whilst I'm here a big, big thank you for solving the hiss during zero sound output! |
Disabling dither fixes the hiss for me on both the original Pi B and the Pi 2 (I don't have a Pi B+, but it should be like the Pi B, right?). Can you please document this option on this page? It's not in there. |
Hi, On the Pi 2 it fixes it on some distributions but not all. Initially it I believe the issue is still software as it is differing between The issue needs someone with more Linux knowledge to understand what is Kind regards, Clayton On Wed, Jun 10, 2015 at 1:10 AM, Uplink03 [email protected] wrote:
|
I was facing this same issue and infact i did reinstall OS, finally I found that my issue was with servoblaster using as pwm, As servoblaster use PIN 18 which is used for 3.5 audio Jack also, using PCM flag --pcm i was able to get back my audio. Please find more detail on this site https://leenabot.com/en/Driving-Servo-Motors-Servo-Blaster-for-Raspberry-Pi/ Hope this is helpful for others who are using servoblaster. |
The recommended config.txt option for high-quality audio from the 3.5mm jack is |
The on board audio (PWM to 3.5mm Jack) has started to produce a very noticeable level of "hiss" when it is open but being fed silence. Mostly reported on the forums as a ALSA problem but I have openMAX IL code that bypasses ALSA and has the same problem. I've only noticed it since upgrading to 2015-02-16 Raspbian but it may have been there longer. Douglas6 on the forums says "An easy way to produce the symptoms seems to be to install and run fluidsynth."
The text was updated successfully, but these errors were encountered: