Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
adamdea wrote: > I'm having trouble with squeezelite on a pi2 running max2play (server is > on another pi). I have a topping d10 dac attached and am getting > annoying low level popping sounds which are obtrusive on tracks with > quiet background (solo piano and choral for example). I do not get this > problem attaching the topping to a windows laptop runnning squeezelite-x > so assume the problem lies with the squeezelite settings. > > sorry for the dumb quesion but what it the correct output device? > Code: > > SQUEEZELITE -l > Output devices: > null - Discard all samples (playback) or generate zero samples (capture) > jack - JACK Audio Connection Kit > pulse - PulseAudio Sound Server > equal > plugequal - Equalizer for plughw:0,0 > default:CARD=Headphones- bcm2835 Headphones, bcm2835 Headphones - Default Audio Device > sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device > dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample mixing device > dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample snooping device > hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct hardware device without any conversions > plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Hardware device with all software conversions > usbstream:CARD=Headphones - bcm2835 Headphones - USB Stream Output > default:CARD=D10 - D10, USB Audio - Default Audio Device > sysdefault:CARD=D10- D10, USB Audio - Default Audio Device > front:CARD=D10,DEV=0 - D10, USB Audio - Front speakers > surround21:CARD=D10,DEV=0 - D10, USB Audio - 2.1 Surround output to Front and Subwoofer speakers > surround40:CARD=D10,DEV=0 - D10, USB Audio - 4.0 Surround output to Front and Rear speakers > surround41:CARD=D10,DEV=0 - D10, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers > surround50:CARD=D10,DEV=0 - D10, USB Audio - 5.0 Surround output to Front, Center and Rear speakers > surround51:CARD=D10,DEV=0 - D10, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers > surround71:CARD=D10,DEV=0 - D10, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers > iec958:CARD=D10,DEV=0 - D10, USB Audio - IEC958 (S/PDIF) Digital Audio Output > dmix:CARD=D10,DEV=0- D10, USB Audio - Direct sample mixing device > dsnoop:CARD=D10,DEV=0 - D10, USB Audio - Direct sample snooping device > hw:CARD=D10,DEV=0 - D10, USB Audio - Direct hardware device without any conversions > plughw:CARD=D10,DEV=0 - D10, USB Audio - Hardware device with all software conversions > usbstream:CARD=D10 - D10 - USB Stream Output > > > > I've tried most of the d10 ones and they seem to still have the > popping. Should I change the buffer settings? -a 80:4:: > any ideas? Am I looking in the wrong place? I would recommend using -o hw:CARD=D10,DEV=0 for the output device. If you are using the USB interface to the DAC try -a 120:4::0 If you still experience pops/clicks then try -a 16384:4096 Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
ralphy wrote: > I would recommend using -o hw:CARD=D10,DEV=0 for the output device. > > If you are using the USB interface to the DAC try -a 120:4::0 > > If you still experience pops/clicks then try -a 16384:4096 Much obliged, Ralphy- will give it a whirl later. adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
ralphy wrote: > I would recommend using -o hw:CARD=D10,DEV=0 for the output device. > > If you are using the USB interface to the DAC try -a 120:4::0 > > If you still experience pops/clicks then try -a 16384:4096 Thanks- I hads no joy with max2play. I treid PCP instead. It seems to work with hw:CARD=D10,DEV=0 ALSA setting 120:4::1 (automatically gernated- I only changed the 80 to 120, not sure what the 1 is) Popping seems to have gone. Am very impressed with PCP but daunted by all the options. -is there a wiki? Can you help with a couple of queries. Dac seemed to click on and off on cycle while I was trying to set up. Seems to have stopped doing that except when sample rate changes. Is there some way of dealing with that? Also can I set squeezelite to use the dac's own vc rather than LMS/squeezelite. is that -o HW:0 -V Digital ? adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
when swapping sample rates this is what I get (along wiht lots of clicking of the dac on and off) from dmesg Code: [47787.919583] usb 1-1.4: cannot submit urb 0, error -19: no device [47787.919640] usb 1-1.4: cannot submit urb 0, error -19: no device [repeat hundreds of times] [ [47787.986168] usb 1-1.4: cannot submit urb 0, error -19: no device [47788.296368] usb 1-1.4: new high-speed USB device number 117 using dwc_otg [47788.427938] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [47788.427963] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [47788.427975] usb 1-1.4: Product: D10 [47788.427987] usb 1-1.4: Manufacturer: Topping [47788.502535] usb 1-1.4: 1:3 : unsupported format bits 0x1 [47793.210246] usb 1-1.4: USB disconnect, device number 117 [47793.210447] usb 1-1.4: cannot submit urb (err = -19) [47793.666204] usb 1-1.4: new high-speed USB device number 118 using dwc_otg [47793.797929] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [47793.797949] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [47793.797964] usb 1-1.4: Product: D10 [47793.797976] usb 1-1.4: Manufacturer: Topping [47793.872565] usb 1-1.4: 1:3 : unsupported format bits 0x1 [47798.330327] usb 1-1.4: USB disconnect, device number 118 [47798.846201] usb 1-1.4: new high-speed USB device number 119 using dwc_otg [47798.977965] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [47798.977990] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [47798.978002] usb 1-1.4: Product: D10 [47798.978014] usb 1-1.4: Manufacturer: Topping [47799.052614] usb 1-1.4: 1:3 : unsupported format bits 0x1 [repeat a few times] [47825.564895] usb 1-1.4: 1:3 : unsupported format bits 0x1 [47844.154602] usb 1-1.4: USB disconnect, device number 127 [47844.466195] usb 1-1.4: new high-speed USB device number 4 using dwc_otg [47844.597892] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [47844.597913] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [47844.597925] usb 1-1.4: Product: D10 [47844.597936] usb 1-1.4: Manufacturer: Topping [47844.674503] usb 1-1.4: 1:3 : unsupported format bits 0x1 [47931.706762] usb 1-1.4: USB disconnect, device number 4 [47931.707014] usb 1-1.4: cannot submit urb (err = -19) [47932.176325] usb 1-1.4: new high-speed USB device number 5 using dwc_otg [47932.308146] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [47932.308170] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [47932.308182] usb 1-1.4: Product: D10 [47932.308196] usb 1-1.4: Manufacturer: Topping [47932.383035] usb 1-1.4: 1:3 : unsupported format bits 0x1 [repeat a few times] [48197.691265] usb 1-1.4: USB disconnect, device number 15 [48198.016205] usb 1-1.4: new high-speed USB device number 16 using dwc_otg [48198.147979] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [48198.148003] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [48198.148017] usb 1-1.4: Product: D10 [48198.148027] usb 1-1.4: Manufacturer: Topping [48198.41] usb 1-1.4: 1:3 : unsupported format bits 0x1 [48198.459230] usb 1-1.4: USB disconnect, device number 16 [48198.856215] usb 1-1.4: new high-speed USB device number 17 using dwc_otg [48198.987982] usb 1-1.4: New USB device found, idVendor=152a, idProduct=8750, bcdDevice= 1.02 [48198.988005] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=0 [48198.988018] usb 1-1.4: Product: D10 [48198.988028] usb 1-1.4: Manufacturer: Topping [48199.062677] usb 1-1.4: 1:3 : unsupported format bits 0x1 adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
I should add that it then works for most rates but seems to get stuck for 192khz adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
adamdea wrote: > > Can you help with a couple of queries. > Dac seemed to click on and off on cycle while I was trying to set up. > Seems to have stopped doing that except when sample rate changes. Is > there some way of dealing with that? It's usually caused by the DAC trying to sync to the new sample rate. You can specify a delay of silence when the sample rate changes using the -r :xxx option in squeezelite to see if it helps. Where xxx is the delay in milliseconds. adamdea wrote: > Also can I set squeezelite to use the dac's own vc rather than > LMS/squeezelite. is that -o HW:0 -V Digital ? On the squeezelite page in picoreplayer you can click more next to Set ALSA control for volume adjustment (-V) to see the available vc for your device. You can click the one you want to try to populate the field. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
ralphy wrote: > It's usually caused by the DAC trying to sync to the new sample rate. > You can specify a delay of silence when the sample rate changes using > the -r :xxx option in squeezelite to see if it helps. Where xxx is the > delay in milliseconds. > > > On the squeezelite page in picoreplayer you can click more next to Set > ALSA control for volume adjustment (-V) to see the available vc for your > device. You can click the one you want to try to populate the field. I get a blank- "You have the following audio cards/controls: " adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
@adamdea > > Output devices: > null - Discard all samples (playback) or > generate zero samples (capture) > jack - JACK Audio Connection Kit > pulse - PulseAudio Sound Server > equal > plugequal - Equalizer for plughw:0,0 > default:CARD=Headphones- bcm2835 Headphones, bcm2835 > Headphones - Default Audio Device > sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 > Headphones - Default Audio Device > dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 > Headphones - Direct sample mixing device > dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 > Headphones - Direct sample snooping device > hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 > Headphones - Direct hardware device without any conversions > plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 > Headphones - Hardware device with all software conversions > usbstream:CARD=Headphones - bcm2835 Headphones - USB Stream > Output > default:CARD=D10 - D10, USB Audio - Default Audio Device > sysdefault:CARD=D10- D10, USB Audio - Default Audio Device > front:CARD=D10,DEV=0 - D10, USB Audio - Front speakers > surround21:CARD=D10,DEV=0 - D10, USB Audio - 2.1 Surround output > to Front and Subwoofer speakers > surround40:CARD=D10,DEV=0 - D10, USB Audio - 4.0 Surround output > to Front and Rear speakers > surround41:CARD=D10,DEV=0 - D10, USB Audio - 4.1 Surround output > to Front, Rear and Subwoofer speakers > surround50:CARD=D10,DEV=0 - D10, USB Audio - 5.0 Surround output > to Front, Center and Rear speakers > surround51:CARD=D10,DEV=0 - D10, USB Audio - 5.1 Surround output > to Front, Center, Rear and Subwoofer speakers > surround71:CARD=D10,DEV=0 - D10, USB Audio - 7.1 Surround output > to Front, Center, Side, Rear and Woofer speakers > iec958:CARD=D10,DEV=0 - D10, USB Audio - IEC958 (S/PDIF) > Digital Audio Output > dmix:CARD=D10,DEV=0- D10, USB Audio - Direct sample mixing > device > dsnoop:CARD=D10,DEV=0 - D10, USB Audio - Direct sample > snooping device > hw:CARD=D10,DEV=0 - D10, USB Audio - Direct hardware > device without any conversions > plughw:CARD=D10,DEV=0 - D10, USB Audio - Hardware device with > all software conversions > usbstream:CARD=D10 - D10 - USB Stream Output You seem to have a lot of extra services added, Pulse, Jack, etc.. If you have a spare card, try a fresh install and use only the basic (updated) squeezelite. Which version of M2P are you using, I can knock up a rpi2 (I have a Topping dac, but not the D10) ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Man in a van wrote: > @adamdea > > > > > You seem to have a lot of extra services added, Pulse, Jack, etc.. > > If you have a spare card, try a fresh install and use only the basic > (updated) squeezelite. > > Which version of M2P are you using, I can knock up a rpi2 (I have a > Topping dac, but not the D10) > > ronnie Hi Ronnie- thanks for the assistance. I can't get at the pi right now but will have a look later. I thought it was a fresh install from website dwnload without updating... Interesting that m2p had pops but no power cycling problem on the dac as with pcp. adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Adam So, I have Installed Buster Image to rpi 2B Updated M2P Changed location Did not use license Expanded FS Updated Squeezelite Used the line beginning plughw-DX3Pro,USBAudio for output Raspberry Settings:---enabled Max USB-Current (would not accept, may not be required with Buster, but I added it to the config.txt anyway {max_usb_current=1}) Alsa parameter 80:4: Playing 30895 No clicks or pops I see the "extra services2 I referred to are default settings :o:o:o:p ronnie +---+ |Filename: hires.png| |Download: http://forums.slimdevices.com/attachment.php?attachmentid=30895| +---+ Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Man in a van wrote: > Adam > > So, I have > > Installed Buster Image to rpi 2B > > Updated M2P > > Changed location > > Did not use license > > Expanded FS > > Updated Squeezelite > > Used the line beginning plughw-DX3Pro,USBAudio for output > > Raspberry Settings:---enabled Max USB-Current (would not accept, may not > be required with Buster, but I added it to the config.txt anyway > {max_usb_current=1}) > > Alsa parameter 80:4: > > Playing > > 30895 > > No clicks or pops > > I see the "extra services2 I referred to are default settings :o:o:o:p > > ronnie Thanks so much. I tried a fresh install and still got problems . In fact now the max2p was power cycling too. and not connecting at all. ]I'm beginning to wonder (actually at prompt from Archimago) whether it might be the power which is the problem. Is your DX3pro powered by the pi or independently? Did you set up "usb audio" in the Raspberry pi settings tab (under the menu seletion for hats or other cards) and if so at what point? At what point in the process did you connect the dac. ARe you using the UI to apply squeezelite settings. Last time i tried. I selected USB audio, which seems to casue it to crash. Then on reboot the dac power cycled. world of pain. I will try to follow your precise steps. adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
The DX3Pro is powered by it's own PS (15v). Dac connected before power up (yesterday and today) I could not set up via the "Raspberry PI" settings tabs. I guess this is because I did not invoke my licence. I just selected the dac from the dropdown in the "Audioplayer" settings tab I have just restarted the rpi2b with a Khadas usb dac (powered by the pi) I set the audio output to plughw:CARD=Control,DEV=0 Alsa Parameter set at default of 80:4:: Command line Options set at the default -C 5 A ripped cd flac file played OK, not so the Chromatic Fantasia and Fugue in D minor, BWV 903: Fantasia that I used yesterday, all fizzy and hashy noise. changed to plain hw:CARD=Control,DEV=0 No improvement LMS Settings > Player > Max2Play > DSDPlayer reports > This player supports native playback of DSD files. DSD-over-PCM should > be configured on the player configuration interface. > I added -D to the squeezelite Command line Options { -D -C 5} restated squeezelite with the hw:CARD=Control,DEV=0 setting The Fugue now plays without any noise ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Man in a van wrote: > The DX3Pro is powered by it's own PS (15v). > > Dac connected before power up (yesterday and today) > > I could not set up via the "Raspberry PI" settings tabs. I guess this is > because I did not invoke my licence. I just selected the dac from the > dropdown in the "Audioplayer" settings tab > > I have just restarted the rpi2b with a Khadas usb dac (powered by the > pi) > > I set the audio output to plughw:CARD=Control,DEV=0 > Alsa Parameter set at default of 80:4:: > Command line Options set at the default -C 5 > > A ripped cd flac file played OK, not so the > > Chromatic Fantasia and Fugue in D minor, BWV 903: Fantasia > > that I used yesterday, all fizzy and hashy noise. > > > changed to plain hw:CARD=Control,DEV=0 > > No improvement > > LMS Settings > Player > Max2Play > DSDPlayer reports > > > I added -D to the squeezelite Command line Options { -D -C 5} restated > squeezelite with the hw:CARD=Control,DEV=0 setting > > The Fugue now plays without any noise > > ronnie Thanks again- it's so kind of you to go to the trouble. I've had to go into work (!) but will try again later. I will not invoke my licence, not use the usb dac setting in Audioplayer, check the power supply and see where it gets me. adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
adamdea wrote: > Thanks again- it's so kind of you to go to the trouble. I've had to go > into work (!) but will try again later. I will not invoke my licence, > not use the usb dac setting in Audioplayer, check the power supply and > see where it gets me. Ronnie- thanks very much for your help. It seems as thought the power supply was the major issue. I was using a 5v 0.75A supply which is plainly not adequate. Now I have a 5v 2a supply in, it seems to have solved the problem. That said I am not 100% sure I'm not gettign the odd low level pop, but this might be my imagination (or just the odd chair creaking/lectern knocking in the recording. I apologise for sending you on a wild goose chase. adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
adamdea wrote: > Ronnie- thanks very much for your help. It seems as thought the power > supply was the major issue. I was using a 5v 0.75A supply which is > plainly not adequate. Now I have a 5v 2a supply in, it seems to have > solved the problem. That said I am not 100% sure I'm not gettign the odd > low level pop, but this might be my imagination (or just the odd chair > creaking/lectern knocking in the recording. > I apologise for sending you on a wild goose chase. 30924 My old original PS from Mod My Pi has 5.2v 2Amp Off you go 30925 :):) ronnie +---+ |Filename: naughty step.png | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=30925| +---+ Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Man in a van wrote: > > > My old original PS from Mod My Pi has 5.2v 2Amp > > Off you go > > > > :):) > > > ronnie Oh the shame of it. In my defence it worked ok with my cirrus audio card adamdea's Profile: http://forums.slimdevices.com/member.php?userid=37603 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
ralphy wrote: > I would recommend using -o hw:CARD=D10,DEV=0 for the output device. > > If you are using the USB interface to the DAC try -a 120:4::0 > > If you still experience pops/clicks then try -a 16384:4096 I have been getting popping noises on my Pi4 headphone output when playing FLACs (not radio). To stop the popping I have tried both "-a 120:4::0" and "-a 16384:4096::0" and both seem to work! A while ago I had problems with the sound breaking up and I added "-a :::0" which fixed it. But can anyone explain what this actually is doing? The Wiki says: -a :::Specify ALSA params to open output device, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1) Frankly I have no idea what this means, which buffer, whether the specified numbers are in ms or bytes, what period, what is mmap, and will there be a delay on the audio output as a result!? And more importantly why do I need to specify this on my system which couldn't be simpler, or Is there something more sinister going on? Surely defaults should work on a simple system? - Pi4 - Raspbian 10 (Buster) - ExecStart=/usr/bin/squeezelite -o plughw:CARD=Headphones,DEV=0 -n Pi_SqueezeliteService -C 5 -a 120:4::0 - LMS 8.1.2 - 1624550702 @ Thu Jun 24, 2021 - Squeezelite v1.9.9-1386 - Also 2 other SB3s, but these were unsync'd during testing. Any help/insight much appreciated! SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
@rbl What sort of flacs ? How were they ripped? Where are they stored ? How did you install squeezelite ? Buster Desktop or Lite ? Which power supply for the rpi ? When does the popping occur, how often, has it always been present or is it recent ? Anything in the logs ? (server and maybe scanner) ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Man in a van wrote: > @rbl > > What sort of flacs ? How were they ripped? > > > Where are they stored ? > > > How did you install squeezelite ? > > > Buster Desktop or Lite ? > > > Which power supply for the rpi ? > > > When does the popping occur, how often, has it always been present or is > it recent ? > > Anything in the logs ? (server and maybe scanner) > > ronnie - the FLACs were ripped from CDs using Exact Audio Copy - they are stored on a 256GB USB 3.0 stick stuck in the side of the Pi4 - I downloaded the latest armhf from https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/ . Unzip it, and then "sudo mv squeezelite /usr/bin/squeezelite". I have checked it is the latest version running. - Buster desktop - using a Samsung USB charger rated at 2.0A output. The Pi4 is doing nothing else, it just sits there running LMS/Squeezelite. - the popping seems to come and go, but when it occurs it is a very soft popping, random, but about once a second. It is not very noticeable - I can't see anything that looks interesting in the server log. The scanner log is empty, perhaps as I upgraded LMS from the April version today but didn't rescan the library (doing that now). On the topic of PSU, I put another USB stick in the Pi a month ago or so. Is it possible that tipped it over the edge? Not sure when the problem started as I usually only listen to radio on the Pi4. But the popping noise has never happened on the SB3s (even when sync'd to the Pi). SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
@rbl I have a similar setup (Raspberry pi Buster Desktop-32 bit) and experience no popping on headphone playback of flac files stored on a CIFS nas (actually this is a usb disk attatched to an AirDisk Q2, but the same thing ) I ripped my files using dBPowerAmp (I'm not sure, but does the EAC also add .cue files ?) For squeezelite install, I now just use the package manager and update, but it works out the same way. I would look first at the power supply, is LMS installed on the problem rpi ? I use either the official rpi foundation one or a 4 amp MeanWell. Check by removing the extra usb stick (maybe also using the usb 2 sockets) I can't think of anything else at the mo ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
I found a 3.0A PSU, used a smaller fatter USB cable, and set -a :::0. I also put a power meter on the PSU, which drew a peak of 1.4A during boot up, and then ticked along at c1.2A. Amazingly removing the 2nd USB stick dropped the power consumption by 0.2A to 1.0A. Unfortunately the popping is still there. It often seems to take a few minutes before it starts, or at least becomes audible. I have never heard it from the SB3s. Id still be interested as per my OP as to what the -a options actually do, as it did seem to fix the problem. Regarding EAC it is an excellent ripper. I never got any clicks or anything, which was initially a problem when I ripped my CD collection 20 odd years ago. It also has AccurateRip where it does some sort of CRC against a database of other peoples rips to make sure your rip is bang on. Yes it can add .cue files, although I never do that. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Have you tried changing the output from -o plughw:CARD=Headphones,DEV=0 Code: pi@BusterDesktop:~ $ sudo squeezelite -l Output devices: default- Playback/recording through the PulseAudio sound server null - Discard all samples (playback) or generate zero samples (capture) jack - JACK Audio Connection Kit pulse - PulseAudio Sound Server sysdefault:CARD=b1 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Default Audio Device dmix:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample mixing device dsnoop:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample snooping device hw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct hardware device without any conversions plughw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Hardware device with all software conversions usbstream:CARD=b1 - bcm2835 HDMI 1 - USB Stream Output sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample mixing device dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample snooping device hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct hardware device without any conversions plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Hardware device with all software conversions usbstream:CARD=Headphones - bcm2835 Headphones - USB Stream Output Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Yep - I already have that: ExecStart=/usr/bin/squeezelite -o plughw:CARD=Headphones,DEV=0 -n Pi_SqueezeliteService -C 5 -a :::0 I added the -a :::0 in January after a system update caused a lot of very significant rebuffering. No idea what the option does! This "popping" noise is fairly recent. It's hard to tell as it is quite faint, but it may be syncing/rebuffering type effect. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
I meant that you should try the lines in red :) I'm trying -o plughw:CARD=Headphones,DEV=0 now and there does seem to be some noise, very faint I also tried this Any way, I tried this In /boot/config.txt : below dtparam=audio=on add audio_pwm_mode=2 and that made no difference :( Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
I left audio_pwm_mode=2 in the config file (I think it is a default setting now anyway) Code: pi@BusterDesktop:~ $ sudo nano /etc/default/squeezelite GNU nano 3.2/etc/default/squeezelite # Defaults for squeezelite initscript # sourced by /etc/init.d/squeezelite # installed at /etc/default/squeezelite by the maintainer scripts # The name for the squeezelite player: SL_NAME="$(hostname -s)" # ALSA output device: SL_SOUNDCARD="plughw:CARD=Headphones,DEV=0" # Squeezebox server (Logitech Media Server): # Uncomment the next line if you want to point squeezelite at the IP address of # your squeezebox server. This is usually unnecessary as the server is # automatically discovered. #SB_SERVER_IP="192.168.x.y" # Additional options to pass to squeezelite: # Please do not include -z to make squeezelite daemonise itself. SB_EXTRA_ARGS="-C 5 -a 160:4::0" SB_EXTRA_ARGS="-C 5 -a 160:4::0 seems better I can't explain what the changes do, sorry :confused: I'm in the non techie side of stuff, when I read the explanations and reasoning, I sometimes understand the ability to retain that understanding seems to fade away :(:o:):) ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
My boot.txt is all HDMI stuff apart from "dtparam=audio=on" which looks pretty unexciting. I had tried the -a 120:4::0 suggested at the top of this thread which seems to work. I am just trying to understand what these numbers mean. I think I'll post a new more specific thread. I have also tried your recent "-o sysdefault:CARD=Headphones" suggestion which doesn't seem to have worked either. ExecStart=/usr/bin/squeezelite -o sysdefault:CARD=Headphones -n Pi_SqueezeliteService -C 5 -a :::0 On another note, every time I make a change I reboot the Pi to be sure it takes effect. Is there an easier way to stop/start squeezelite with the new options in squeezelite.service? I'm very new to Linux! It seems I should stick these options in /etc/default/squeezelite and simplify the ExecStart line? I was a complete techie 30 years ago - haven't got a clue now!! So thank you for the help!! SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
I always used to use instructions from here when I started http://http://www.gerrelt.nl/RaspberryPi/wordpress/tutorial-installing-squeezelite-player-on-raspbian/ Lately, if I use a Raspberry pi OS (or Ubuntu on a rpi or Linux Mint on an old Shuttle) I use either the package manager or Code: sudo apt install squeezelite This gives the squeezelite config file at Code: sudo nano /etc/default/squeezelite I use Code: sudo /etc/init.d/squeezelite restart after making initial and subsequent changes. To update I run (paste in a block) and just change the version number Code: sudo /etc/init.d/squeezelite stop wget -O squeezelite.tgz https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1386-armhf.tar.gz sudo tar -C /usr/bin -zxvf squeezelite.tgz sudo chmod a+x /usr/bin/squeezelite sudo /etc/init.d/squeezelite start #If running with no sound, repeat Code: sudo /etc/init.d/squeezelite restart The rpi headphone output has never been stellar, just adequate, imo. Adding Code: audio_pwm_mode=2 was the result of the rpi foundation trying to improve the driver, and I think is now a default setting After a long search I have found the thread https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=195178 I have an iQaudio hat with a built in headphone output which is very respectable :) ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
That's very helpful. So presumably if I update /etc/default/squeezelite with the -a 120:4::0, the soundcard, -C 5 etc., then I can change the auto start line in squeezelite.service simply to "ExecStart=/usr/bin/squeezelite"? But will /etc/default/squeezelite get overwritten every time I update squeezelite? Presumbaly not ... SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
rbl wrote: > That's very helpful. So presumably if I update /etc/default/squeezelite > with the -a 120:4::0, the soundcard, -C 5 etc., then I can change the > auto start line in squeezelite.service simply to > "ExecStart=/usr/bin/squeezelite"? > > I can't offer any advice on this, I'm sorry, as I don't do a manual file > creation. > > > > > File list of package squeezelite in buster of architecture armhf > > > > /etc/default/squeezelite > > /etc/init.d/squeezelite > > /usr/bin/squeezelite > > /usr/share/doc/squeezelite/changelog.Debian.armhf.gz > > /usr/share/doc/squeezelite/changelog.Debian.gz > > /usr/share/doc/squeezelite/changelog.gz > > /usr/share/doc/squeezelite/copyright > > /usr/share/man/man1/squeezelite.1.gz > > > > > > Restarting , stopping or status of squeezelite allways returns this > line > > > Code: > > Restarting squeezelite (via systemctl): squeezelite.service. > > > > > example: > > > Code: > > pi@BusterDesktop:~ $ systemctl status squeezelite > * squeezelite.service - LSB: Lightweight headless Squeezebox emulator > Loaded: loaded (/etc/init.d/squeezelite; generated) > Active: active (running) since Thu 2021-07-15 17:42:05 BST; 58min ago > Docs: man:systemd-sysv-generator(8) > Process: 3237 ExecStart=/etc/init.d/squeezelite start (code=exited, status=0/SUCCESS) > Tasks: 4 (limit: 4915) > CGroup: /system.slice/squeezelite.service > `-3246 /usr/bin/squeezelite -n BusterDesktop -o plughw:CARD=Headphones,DEV=0 -C 5 -a 160 4 0 > > Jul 15 17:42:05 BusterDesktop systemd[1]: Starting LSB: Lightweight headless Squeezebox emulator... > Jul 15 17:42:05 BusterDesktop systemd[1]: Started LSB: Lightweight headless Squeezebox emulator. > pi@BusterDesktop:~ $ > > > > > > But will /etc/default/squeezelite get overwritten every time I update > squeezelite? Presumbaly not ... > > > /etc/default/squeezelite does not get overwritten, normally I set the > config to what I need, save and restart. > > I begin playback to test all is well, then paste the squeezelite > update text in one block whilst listening. It stops, updates and then > restarts, it's like magic :) > > > ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
It's not as I expected. If I use /etc/init.d/squeezelite stop/start, it doesn't seem to pick up the parameters from /etc/default/squeezelite, it still takes the params from ExecStart in /etc/systemd/system/squeezelite.service. If I change the ExecStart line then on re-starting squeezelite I get a warning to run "systemctl daemon-reload" whatever that is. I do that, start squeezelite, and it picks up the new ExecStart parameters. So it seems to me with my setup which auto starts squeezelite at bootup, the settings in /etc/default/squeezelite are irrelevant. SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
rbl wrote: > it still takes the params from ExecStart in > /etc/systemd/system/squeezelite.service. > So it seems to me with my setup which auto starts squeezelite at bootup, > the settings in /etc/default/squeezelite are irrelevant. Apparently so :) > > If I change the ExecStart line then on re-starting squeezelite I get a > warning to run "systemctl daemon-reload" whatever that is. I do that, > start squeezelite, and it picks up the new ExecStart parameters. This is standard, 'https://serverfault.com/questions/700862/do-systemd-unit-files-have-to-be-reloaded-when-modified ' (https://serverfault.com/questions/700862/do-systemd-unit-files-have-to-be-reloaded-when-modified) > > It's not as I expected. If I use /etc/init.d/squeezelite stop/start, it > doesn't seem to pick up the parameters from /etc/default/squeezelite, These files are created by using either the Desktop package manager or "sudo apt install" (both ate Apt) in install squeezelite. If you download and install squeezelie yourself, then you also have to create the files to control it, which you have done. If you read Gerrelt's blog, which I linked to, he provides files, scroll down to "*Starting Squeezelite on startup*" Which is how I used to do it :) ronnie Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
Squeezelite working perfectly now with -a 120:4::0 I may post new thread to try and get a better understanding of this -a option Thank you very much for your help!! SB3 -> Quad 909 -> Quad Electrostatic speakers, Quad 405 -> TBI subwoofer 3 x SB3s + SB Radio LMS on Raspbian on a Pi4 Rotel RSP1068 surround processor, Quad 707 -> B&W surround rbl's Profile: http://forums.slimdevices.com/member.php?userid=4517 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] problem with popping sounds in squeezelite
:):cool: Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=112503 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins