Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
dmix is the root cause of your problems and I think you don't need to use dmix. You want the audio out to play sometimes from the TV and sometimes from LMS. I presume you do not need it to mix the TV and LMS audio simultaneously ? If that is the case use the basic ALSA device for audio out and just use -C at a low value say 1 or 2 secs. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > > > I need to do some reading about the relationship between bits (16 or 24) > and sample rate (44100 vs 48000). > That won't take long. There isn't a relationship. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
bpa wrote: > does spotty use a sample size size of 16bit or 24 bits - how does this > compare to your files ? Is this the source of the dmix issue. > If you don't "know" your sources - you may not resolve the issue with > whatever system you try be it dmix, Pulseaudio or LMS resampling. Thanks for the guidance and schooling! I'm not sure yet about the exact output of Spotty. I did receive 'a message from Michael Herger' (https://forums.slimdevices.com/showthread.php?110455-Announce-Spotty-2-8-x-Spotify-Connect-for-your-Squeezebox&p=962044&viewfull=1#post962044) and he thinks its 44100 and can't be changed. That adds up when I change the DMix default to 44100 and it corrects Spotty's playback speed to normal as well as when playing back 44100 files from local sources. I need to do some reading about the relationship between bits (16 or 24) and sample rate (44100 vs 48000). > To force LMS resampling use -rJust to clarify: Do I add the *-r* and the > *-a* switches to the *squeezelite_settings.sh* file under the *SL_Additional_Options *setting at the end? I sincerely appreciate the guidance. Your questions are helping me learn a very new and fascinating technology. noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
I think the "-C 5" probably does nothing except close the dmix device between uses - so always handle the first stream correct but not when mixing. Not really part of a full solution. You may need to use "-a" to restrict the sample size for Alsa if sample size is the problem with dmix. To force LMS resampling use -r and specify the same bitrate as the dmix default value. This should restrict squeezelite to playing at a single bitrate - LMS will only send stream at this rate. You need to make sure that all non LMS stream on the dmix device are also at the same bit rate as the LMS stream. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > Can I achieve application audio sharing without dmix (ala Pulse Audio, > Jack, C-3PO, etc) and still use Squeezelite somehow? > > If not, how do I configure resampling in LMS? C-3PO? > Thanks for your guidance! > Edit: I think that Spotty outputs at 44100 which may be why it's > playing too fast when I do not use the -u setting in > squeezelite_settings.sh. When I do add the -u, then Spotty becomes > terribly distorted sounding. Pulseaudio will do proper mixing of different rate/sample size but I think you'll need the Pulseaudio version of squeezelite. Also if you do not know Pulseaudio you'll need to read up as otherwise your swapping one problem for another. No need for C3PO - LMS will do all the necessary resampling if it is told the player can only handle specific bit rate. You didn't answer my question - does spotty use a sample size size of 16bit or 24 bits - how does this compare to your files ? Is this the source of the dmix issue. If you don't "know" your sources - you may not resolve the issue with whatever system you try be it dmix, Pulseaudio or LMS resampling. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
bpa wrote: > dmix is the source of all your problem - so check out its restrictions > fully. Can it play 16bit sample only or can it play 24 bits sample also > ? Is spotty 24 bit sample ? > > edit: > > I think if you persist with dmix - it would be better to let LMS do the > resampling. Can I achieve application audio sharing without dmix (ala Pulse Audio, Jack, C-3PO, etc) and still use Squeezelite somehow? If not, how do I configure resampling in LMS? C-3PO? Thanks for your guidance! noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > You're right! I'm running on too little sleep these days. > > Haven't figured out what Spotty's sample rate is yet. Still digging. > > I notice that when I change the */usr/share/alsa/alsa.conf *back to the > default: *defaults.pcm.dmix.rate 48000*, Squeezelite plays local files > that are encoded at 44100 too fast. So, I added the following to the > end of my *squeezelite_settings.sh* - *SL_ADDITIONAL_OPTIONS="-C 5, -u"* > > However, when I do that Spotify streamed songs then play terribly > distorted. I'll post in the Spotty page to see if I can figure it out. dmix is the source of all your problem - so check out its restrictions fully. Can it play 16bit sample only or can it play 24 bits sample also ? Is spotty 24 bit sample ? edit: I think if you persist with dmix - it would be better to let LMS do the resampling. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
bpa wrote: > I think you are mixing up problems. > The problem is sample rate not bit rate - 320k is bit rate not sample > rate. > > What is the sample rate of spotty ? You're right! I'm running on too little sleep these days. Haven't figured out what Spotty's sample rate is yet. Still digging. I notice that when I change the */usr/share/alsa/alsa.conf *back to the default: *defaults.pcm.dmix.rate 48000*, Squeezelite plays local files that are encoded at 44100 too fast. So, I added the following to the end of my *squeezelite_settings.sh* - *SL_ADDITIONAL_OPTIONS="-C 5, -u"* However, when I do that Spotify streamed songs then play terribly distorted. I'll post in the Spotty page to see if I can figure it out. noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > Well, that broke Spotty playing back on this Squeezelite. I have Spotty > using the 320k nice quality option. But I'm unsure how to manage this > with DMix and Squeezelite. > > I'll take all the guidance I can get guys! I think you are mixing up problems. The problem is sample rate not bit rate - 320k is bit rate not sample rate. What is the sample rate of spotty ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > Sometimes just posting up here to you guys gets my head working better: > > I changed the following line in */usr/share/alsa/alsa.conf* back to the > default: *defaults.pcm.dmix.rate 48000* (Strangely it was on 41000 and > somehow working for 44100 files.) > > Then I added the following to the last line in the file > */usr/local/bin/squeezelite_settings.sh* to read > *SL_ADDITIONAL_OPTIONS="-C 5, -R E"* > > Now I can play 44100 files as well as 48000 files in Squeezelite. Well, that broke Spotty playing back on this Squeezelite. I have Spotty using the 320k nice quality option. But I'm unsure how to manage this with DMix and Squeezelite. I'll take all the guidance I can get guys! noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > OHHH, I get it now. I'm realizing that I'm running into this exact > issue. OK. How can I set up Squeezelite and or LMS to "resample as > required"? From what I understand, DMix is a "sort of"requirement as I > need all apps to share the Audio Device AND I'm presuming that > Squeezelite and PulseAudio are problematic. These assumptions may be > incorrect. I appreciate your guidance! Sometimes just posting up here to you guys gets my head working better: I changed the following line in */usr/share/alsa/alsa.conf* back to the default: *defaults.pcm.dmix.rate 48000* (Strangely it was on 41000 and somehow working for 44100 files.) Then I added the following to the last line in the file */usr/local/bin/squeezelite_settings.sh* to read *SL_ADDITIONAL_OPTIONS="-C 5, -R E"* Now I can play 44100 files as well as 48000 files in Squeezelite. noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
bpa wrote: > 44100 not 41000 I hope > > That's good but what if you try play a 48Khz stream such as internet > radio station (e.g. BBC) ? now the problem will reoccur ? > > If you really really want to use dmix - then make squeezelite always > play at 48000 (i.e. make squeezelite or LMS resample as required). OHHH, I get it now. I'm realizing that I'm running into this exact issue. OK. How can I set up Squeezelite and or LMS to "resample as required"? From what I understand, DMix is a "sort of"requirement as I need all apps to share the Audio Device AND I'm presuming that Squeezelite and PulseAudio are problematic. These assumptions may be incorrect. I appreciate your guidance! noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
Man in a van wrote: > Sorry this is a messy screenshot but if I open VLC to show the ausio > output i can't take one (at the mo) > > This is me, rpi4b Squeezelite installed and playing back through an > external usb dac listening to > > http://direct.fipradio.fr/live/fip-midfi.mp3 > > at the same time > > listening on headphones plugged into the pi and using VLC to play > > http://http://wbgo.streamguys.net/thejazzstream > > 29055 > > > ronnie I like seeing screenshots of other folk's stuff they're up to. How'd you get Jivelite running? Further, how'd you get it running in a Window? I'm very familiar with that interface because I've got Squeezeplay running on all my other Windows Systems that I use as player's around the house. 8 systems total. 3 are Android, 2 are Linux and 3 are Windows. This project will retire 2 of the Windows units. noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
d6jg wrote: > I note that the file mentioned above is 128kbps mp3. You will notice the > difference even more if you re-rip it as FLAC! > > Seriously 128kbps is low grade audio by todays standards. If all of > your music is at this level then you will be re-ripping at some point > for sure. > > Most of us made mistakes when we first started ripping and have had to > re-rip after using LMS for a while. I know I did. > > When you find yourself at this point (you will), make sure you come back > here for advice in the Ripping, Tagging area so that hopefully you will > only ever need to do it again once not multiple times. There are things > that are easy to miss without detailed knowledge of what LMS is capable > of. Thanks for this suggestion and reminder! My MP3 collection is a HUGE mixed up mess that needs to be seriously cleaned up and purged for exactly the same reasons you just mentioned. Sadly, I've got an increasingly nasty case of tinnitus that I've had since childhood, but has gotten somewhat worse with the birth of my 2 kids in the last 5 years. Perhaps it's the screaming. Perhaps it's that I'm just turning 50. At any rate, it will be interesting to see, once I get these files cleaned up/upgraded, if I'll be able to tell the difference between 128k and something as delicious sounding as FLAC. However, I'm still holding on to my vinyls. They're safely hidden away here at the house where no meddling kids can find them. A couple more years of maturity in these boys and I'll bust out the turntable and turn these boys on to some of my gems like Miles Davis, John Coltrane, Mingus, and Monk... Maybe even throw in some Allman Brothers, Deep Purple or ELO. Then again... Spotify has 320k doesn't it... Makes me think about deleting or at least seriously purging the MP3 directory. noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
bpa wrote: > According to this post dmix only supports a fixed sample rate. which > measn if you are mixing 44.1kHz with 48kHz - no upsampling will take > place. > https://unix.stackexchange.com/questions/383386/support-for-multiple-sample-rates-during-playing-and-recording-in-an-application Actually the answer does refer to using a -plug- plugin wrapper to carry out resampling if needed. I recall adopting this on the Joggler half a dozen years or so ago, by customising the -asound.conf- file, and probably posted a how to suggestion on the Joggler forum. But (a) I dont know how to implement in the context of Squeezelite, and (b) I recall its only needed if the ALSA device is shared amongst different applications. So unless the OP has that requirement a simpler approach probably suffices. Its been a while since I looked at this, so dont fully remember the details. mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
Just read back through the thread after posting.doh !!:p 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=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
Sorry this is a messy screenshot but if I open VLC to show the ausio output i can't take one (at the mo) This is me, rpi4b Squeezelite installed and playing back through an external usb dac listening to http://direct.fipradio.fr/live/fip-midfi.mp3 at the same time listening on headphones plugged into the pi and using VLC to play http://http://wbgo.streamguys.net/thejazzstream 29055 ronnie +---+ |Filename: squuezelite and vlc.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=29055| +---+ Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > You guys are incredible detectives and I'm learning an awful lot. I'm > very glad I decided to take this project on and engage the support of > the forums as it's filling in a lot of the knowledge gaps I've had > around my love of both computers and audio. > > Here's what I've discovered: > > @Ronnie - Your suggestion of switching the Squeezelite Soundcard setting > was well targeted: I changed the *SoundCard *line in > */usr/local/bin/squeeezelite_settings.sh *from > SL_SOUNDCARD="*dmix*:CARD=audioinjectorpi" to > SL_SOUNDCARD="*hw*:CARD=audioinjectorpi,DEV=0". This made Squeezelite > play at normal speed/pitch again (see results below). Of note, I DID > leave on the *DEV=0,*" on the entry as it was already there. However, > when I tried to simultaneously play another audio file in VLC, an error > was returned in VLC stating that the audio device DMIX was "Busy". > When I changed the entry back to DMIX the playback speed and pitch in > Squeezelite increased again, but also, as expected, audio sharing was > re-established across applications. > > @Bpa - Thanks for suggesting the details of the files. Note that both > playback time and pitch are affected. As far as I can tell, the track > isn't being played back through any kind of transcoders or processing. > Or at least, I haven't set any up, so if they are they are part of the > default install of my AudioInjector card, LMS or Squeezelite I suppose. > The test file is an MP3 stored on a USB drive attached to a networked > PC. However, I also notice that playback of a network stream (SomaFM, > Venice Classic Radio) also renders the same problem affecting both speed > and pitch. (I wasn't sure until I chose a Classic Rock radio station > where I could hear familiar music - Tom Petty's Refugee as if he's 9 > years old :rolleyes:). After a few minutes of playback I hear > "corrections" in the stream dropping, skipping, stuttering. > > Of note, VLC's playback speed/pitch doesn't appear to be affected by > DMIX. It seems that Squeezelite gets a little "excited" being hooked up > to the ALSA Dmix plugin. If you guys like I could make an audio capture > of the differences in pitch for your listening pleasure. 9 year old > David Gilmore :cool:. > > STATISTICS > > Windows Attributes: > Speak To Me - Breathe > Length: 03:57 > Bit rate: 128kbs > Size: 3.62mb > === > VLC Codec Info on Windows > Codec: MPEG Audio layer 1/2 (mpga) > Type: Audio > Channels: Stereo > Sample Rate: 44100 Hz > Bits per sample: 32 > Bitrate: 128 kb/s > === > VLC Codec Info on Pi > Codec: MPEG Audio layer 1/2 (mpga) > Type: Audio > Channels: Stereo > Sample Rate: 44100 Hz > Bits per sample: 32 > Bitrate: 128 kb/s > === > LMS File Attributes > File Format: MP3 > Duration: 3:57 > Bitrate: 128kbps CBR > Sample Rate: 44.1 kHz > File Length: 3,799,144 > URL: tmp:///G:/Mp3/M - R/Pink Floyd/Dark Side Of The Moon/01_Speak To Me > - Breathe.mp3 > Tag Version: ID3v2.3.0, ID3v1.1 > View Tags > Title: Speak To Me - Breathe > === > Playback Times: > Squeezelite time to play 3:57 sec file when HW is selected - 3:57 > Squeezelite time to play 3:57 sec file when DMIX is selected - 3:38 (19 > seconds faster) > VLC Windows time to play 3:57 sec file - 3:57 > VLC Pi time to play 3:57 sec file when HW is selected - 3:57 > VLC Pi time to play 3:57 sec file when DMIX is selected - 3:57 I note that the file mentioned above is 128kbps mp3. You will notice the difference even more if you re-rip it as FLAC! Seriously 128kbps is low grade audio by todays standards. If all of your music is at this level then you will be re-ripping at some point for sure. Most of us made mistakes when we first started ripping and have had to re-rip after using LMS for a while. I know I did. When you find yourself at this point (you will), make sure you come back here for advice in the Ripping, Tagging area so that hopefully you will only ever need to do it again once not multiple times. There are things that are easy to miss without detailed knowledge of what LMS is capable of. VB2.4[/B] STORAGE *QNAP TS419P (NFS) [B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s *Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes *Dining Room* -> SB Boom *Kitchen* -> UE Radio (upgraded to SB Radio) *Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones *Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s Everything controlled by iPeng d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
Michael try this, add 'C-5' to the end of your Squeezelite 29054 this will delay Squuezelite from starting if not used. ronnie +---+ |Filename: squeezelite c-5.png | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=29054| +---+ Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > Not intentionally. I'm simply using this Pi to act as a "media PC" > where the family can play what they like on it on the family room TV and > speakers. I take the audio from the TV (HDMI Firestick, Roku, > Chromecast attached) and send it to the input of the Pi to be simply > passed on to the output and thus the speakers. I also intend to play > local media via VLC or Web via Chromium Browser on the desktop using the > TV as it's monitor. So, if the AudioInjector Soundcard on the Pi is > generating a 48kHz stream I'm not sure where it would be. Perhaps from > it's RCA Line IN? > > EDIT--- HOT DAMN - I THINK I FOUND IT!!! Based on your clues I found > this in the Asoundrc page of the AlsaProject: > (https://www.alsa-project.org/main/index.php/Asoundrc) > > So I changed the following line in */usr/share/alsa/alsa.conf* > to now read *defaults.pcm.dmix.rate 41000* It was, by default, 48000. > > Reboot and now ole David Gilmore is sounding all grown up again and I > can simultaneously play Spongebob on the VLC player! You guys are > awesome! Come to the US and I'll buy you all a few beers and make you > some homemade Pizza! 44100 not 41000 I hope That's good but what if you try play a 48Khz stream such as internet radio station (e.g. BBC) ? now the problem will reoccur ? If you really really want to use dmix - then make squeezelite always play at 48000 (i.e. make squeezelite or LMS resample as required). bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
bpa wrote: > > Are you trying to mix a 48kHz stream with the playback of a 44.1kHz > squeezleite output ? Not intentionally. I'm simply using this Pi to act as a "media PC" where the family can play what they like on it on the family room TV and speakers. I take the audio from the TV (HDMI Firestick, Roku, Chromecast attached) and send it to the input of the Pi to be simply passed on to the output and thus the speakers. I also intend to play local media via VLC or Web via Chromium Browser on the desktop using the TV as it's monitor. So, if the AudioInjector Soundcard on the Pi is generating a 48kHz stream I'm not sure where it would be. Perhaps from it's RCA Line IN? EDIT--- HOT DAMN - I THINK I FOUND IT!!! Based on your clues I found this in the Asoundrc page of the AlsaProject: (https://www.alsa-project.org/main/index.php/Asoundrc) > Some notes: > > The dmix PCM name is already defined in the global configuration file > /usr/share/alsa/alsa.conf. > > - The default sample rate for this device is 48000Hz. If you would like > to change it use: > > aplay -D"plug:'dmix:RATE=44100'" test.wav So I changed the following line in */usr/share/alsa/alsa.conf* to now read *defaults.pcm.dmix.rate 41000* It was, by default, 48000. Reboot and now ole David Gilmore is sounding all grown up again and I can simultaneously play Spongebob on the VLC player! You guys are awesome! Come to the US and I'll buy you all a few beers and make you some homemade Pizza! noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
noexit wrote: > > Playback Times: > Squeezelite time to play 3:57 sec file when HW is selected - 3:57 > Squeezelite time to play 3:57 sec file when DMIX is selected - 3:38 (19 > seconds faster) > VLC Windows time to play 3:57 sec file - 3:57 > VLC Pi time to play 3:57 sec file when HW is selected - 3:57 > VLC Pi time to play 3:57 sec file when DMIX is selected - 3:57 The ratio of 3:57 to 3:38 is the same as 48000 to 44100. Squeezelite doesn;t do anything specific to pitch - the issues is purely speed - the rate at which samples are played back. Squeezelite just opens ALSA - ALSA is supposed to do the work - it looks like a ALSA DMIX issue. Are you trying to mix a 48kHz stream with the playback of a 44.1kHz squeezleite output ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
You guys are incredible detectives and I'm learning an awful lot. I'm very glad I decided to take this project on and engage the support of the forums as it's filling in a lot of the knowledge gaps I've had around my love of both computers and audio. Here's what I've discovered: @Ronnie - Your suggestion of switching the Squeezelite Soundcard setting was well targeted: I changed the *SoundCard *line in */usr/local/bin/squeeezelite_settings.sh *from SL_SOUNDCARD="*dmix*:CARD=audioinjectorpi" to SL_SOUNDCARD="*hw*:CARD=audioinjectorpi,DEV=0". This made Squeezelite play at normal speed/pitch again (see results below). Of note, I DID leave on the *DEV=0,*" on the entry as it was already there. However, when I tried to simultaneously play another audio file in VLC, an error was returned in VLC stating that the audio device DMIX was "Busy". When I changed the entry back to DMIX the playback speed and pitch in Squeezelite increased again, but also, as expected, audio sharing was re-established across applications. @Bpa - Thanks for suggesting the details of the files. Note that both playback time and pitch are affected. As far as I can tell, the track isn't being played back through any kind of transcoders or processing. Or at least, I haven't set any up, so if they are they are part of the default install of my AudioInjector card, LMS or Squeezelite I suppose. The test file is an MP3 stored on a USB drive attached to a networked PC. However, I also notice that playback of a network stream (SomaFM, Venice Classic Radio) also renders the same problem affecting both speed and pitch. (I wasn't sure until I chose a Classic Rock radio station where I could hear familiar music - Tom Petty's Refugee as if he's 9 years old :rolleyes:). After a few minutes of playback I hear "corrections" in the stream dropping, skipping, stuttering. Of note, VLC's playback speed/pitch doesn't appear to be affected by DMIX. It seems that Squeezelite gets a little "excited" being hooked up to the ALSA Dmix plugin. If you guys like I could make an audio capture of the differences in pitch for your listening pleasure. 9 year old David Gilmore :cool:. STATISTICS Windows Attributes: Speak To Me - Breathe Length: 03:57 Bit rate: 128kbs Size: 3.62mb === VLC Codec Info on Windows Codec: MPEG Audio layer 1/2 (mpga) Type: Audio Channels: Stereo Sample Rate: 44100 Hz Bits per sample: 32 Bitrate: 128 kb/s === VLC Codec Info on Pi Codec: MPEG Audio layer 1/2 (mpga) Type: Audio Channels: Stereo Sample Rate: 44100 Hz Bits per sample: 32 Bitrate: 128 kb/s === LMS File Attributes File Format: MP3 Duration: 3:57 Bitrate: 128kbps CBR Sample Rate: 44.1 kHz File Length: 3,799,144 URL: tmp:///G:/Mp3/M - R/Pink Floyd/Dark Side Of The Moon/01_Speak To Me - Breathe.mp3 Tag Version: ID3v2.3.0, ID3v1.1 View Tags Title: Speak To Me - Breathe === Playback Times: Squeezelite time to play 3:57 sec file when HW is selected - 3:57 Squeezelite time to play 3:57 sec file when DMIX is selected - 3:38 (19 seconds faster) VLC Windows time to play 3:57 sec file - 3:57 VLC Pi time to play 3:57 sec file when HW is selected - 3:57 VLC Pi time to play 3:57 sec file when DMIX is selected - 3:57 noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
The log shows the output device being opened at 44100. Usually when something is played fast - it is a 44100 being played at 48000 so speed increase is slight about 8% Sometime the issues is a mono file being played so track is played at twice the speed. Other rarer problem is sample size. What is the specific speed difference ? (e.g. how long does track to play vs what is the duration according to LMS) - the specifc difference will point at the issue. What does LMS say the characteristics of the problem track ? (i.e. drill down through GUI to get sample rate , sample size, number of channels). bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
Hi Michael Try changing squeezelite_settings.sh file contents: SL_SOUNDCARD="dmix:CARD=audioinjectorpi" to SL_SOUNDCARD="hw:CARD=audioinjectorpi,DEV=0" and adjust any other alterations to default settings 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=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] Squeezelite on Pi4 playing way too fast
Looks Like I figured out how to capture a Squeezelite Logfile: (See Attachment) +---+ |Filename: squeezelite.log | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=29046| +---+ noexit's Profile: http://forums.slimdevices.com/member.php?userid=66502 View this thread: http://forums.slimdevices.com/showthread.php?t=111486 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins