-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
White noise at a base level while playing (at any volume) through HDMI, raspberry 3 [Resolved?] #601
Comments
Thanks for the interesting post. Can I ask if you are using the hardware mixer — i.e. have you used the |
No, I left that commented out, too. Should I use some specific setting? |
Yes, you should use output device “hw:0”, and use the mixer control name “PCM” (use The reason it is better to use a hardware mixer is that Shairport Sync has full control of the volume range of the HDMI output and passes the audio signal directly to the output DAC, unaltered except for stuffing. If you don’t use a hardware mixer, Shairport Sync uses a software mixer to control the output volume. Since the software mixer manipulates the signal, a two-bit dither has to be introduced. In a 16-bit range, this can be heard as a low level white noise. On 24-bit or 32-bit outputs, it’s inaudible. Please let us know how it works out. |
Thanks. So I added lines
and restarted rpi 3. It still plays, but again with the white noise. |
Yes, they are the correct settings. Unfortunately, this means that the source of white noise must lie elsewhere — for example, what is your source? Another line of thinking is this: what if it isn’t white noise exactly, but is a low level somewhat irregular ticking hiss — i.e. not white noise as such? If there was a great deal of interpolation (i.e. “stuffing”) going on, it might be barely audible and might just account for this. So, to be clear, it wouldn’t account for true white noise but might account for a low level irregular clicking noise. If you enable statistics in the configuration file and look in the log to see how much correction is going on, it might be instructive. |
It definitely plays louder and maybe better (but maybe just an illusion, questionable). The noise is perceived like a continuous low vol level "ssssssss", I don't know what do you mean by irregular (on a human level?). The larger speaker from my speaker system emits lower frequency hiss, while the small ones emit higher positioned hiss. My power source is a new ipad charger. The statistics log:
|
Thanks. There is a great deal of overcorrection occurring. Take the third line, for example: – the difference between the second column (net corrections) [example 22.7] and the third (total corrections) [example 1353.9]. Much better to give Shairport Sync a wider drift tolerance – if you look in the README.md, in the section on the Raspberry Pi, a tolerance of 10 milliseconds is suggested. That will greatly reduce the amount of correction being done. Not sure it will fix the problem, but it'll help. |
I'll try. But in the readme it seems to be associated with raspberry's DAC, which I thought I would completely circumvent using hdmi (= digital audio), no? I'm a noob, but I don't understand it. |
Meh, I don't know either. I thought the DAC and the HDMI were out of the same device. Worth trying... |
FWIW I hear the same noise issue on my two RPi3 systems, both running Stretch and fitted with add-on Hifiberry DACs. With the playback system's volume turned up but nothing being Airplayed, there is no background noise or hum, but as soon as I start streaming music from iTunes to the RPi3, there is a persistent white noise in the background. It can be heard by itself if I keep the playback system turned up but lower the volume in the iTunes app running on my music server. As soon as the music is paused, the noise stops. |
I’m using a Pimoroni PHAT, which uses the same overlay as the Hifiberry devices. It has no built-in hardware mixer, so Shairport Sync must use the software volume control and must introduce two bits of dither to avoid noticeable low-level artefacts. That’s where the white noise comes from on my setup, and I guess that’s where it is coming from on @coreygreenberg’s. However, the Pimoroni PHAT, and I guess the Hifiberry devices, are all capable of 32-bit operation, so by setting the output to S32 (Signed 32-bit) in the configuration file, the dither is introduced as the lowest two bits of a 32-bit sample rather than the lowest two bits of a 16-bit sample and is, to my ears anyway, inaudible. @coreygreenberg, it’s worth trying 32-bit output. |
Thanks for the advice @mikebrady -- setting the output to S32 got rid of the noise. For RPi3 users running Shairport-Sync with add-on DACs like the Hifiberry and PHAT:
|
Fixed? |
Sorry, I thought my previous reply explained that yes, the issue was fixed by your solution of changing S16 to S32 in the config file, as long as it's a DAC capable of 32-bit operation as your PHAT and my HifiBerry are. Since changing S16 to S32, the audible white noise overlay is gone (or at least inaudible even with ear pressed against tweeter). Thanks again Mike! |
Cool, thanks! |
Hi, I have raspberry pi 3 connected via HDMI to a receiver/amplifier and I'm experiencing some white noise while the music is playing. When I pause the playback, it disappears. I haven't modified the settings, it worked with HDMI by default. The white noise is the same level disregarding sound level set on streaming device, so I can clearly hear it when the streaming volume is low. The noise becomes louder when amplifier volume is increased.
Thanks for replying
The text was updated successfully, but these errors were encountered: