Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2023-01-02 Thread bpa


Videopac wrote: 
> 
> > 
Code:

  >   > squeezelite -o sysdefault:CARD=ODROIDHIFI2 -n C4HIFISHIELD2 -s 127.0.0.1

> > 
> seems to take forever / no response.
> Any ideas how to resolve this?
> TIA.

Try the real IP address of the LMS server and not 127.0.0.1 just in case
the broadcast UDP packet from squeezelite doesn't work with 127.0.0.1



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2023-01-02 Thread Man in a van


Videopac wrote: 
> I'm trying to get squeezelite to work on a Odroid C4 with the Odroid
> HifiShield2 DAC HAT.
> 
> > 
Code:

  >   > squeezelite -l

> > 
> gives:
> > 
Code:

  >   > Output devices:
  > null   - Discard all samples (playback) or generate 
zero samples (capture)
  > goStereo  
  > hw:CARD=ODROIDHDMI,DEV=0   - ODROID-HDMI,  - Direct hardware device 
without any conversions
  > plughw:CARD=ODROIDHDMI,DEV=0   - ODROID-HDMI,  - Hardware device with all 
software conversions
  > sysdefault:CARD=ODROIDHDMI - ODROID-HDMI,  - Default Audio Device
  > dmix:CARD=ODROIDHDMI,DEV=0 - ODROID-HDMI,  - Direct sample mixing device
  > hw:CARD=ODROIDHIFI2,DEV=0  - ODROID-HIFI2,  - Direct hardware device 
without any conversions
  > plughw:CARD=ODROIDHIFI2,DEV=0  - ODROID-HIFI2,  - Hardware device with all 
software conversions
  > sysdefault:CARD=ODROIDHIFI2- ODROID-HIFI2,  - Default Audio Device
  > dmix:CARD=ODROIDHIFI2,DEV=0- ODROID-HIFI2,  - Direct sample mixing 
device
  > dsnoop:CARD=ODROIDHIFI2,DEV=0  - ODROID-HIFI2,  - Direct sample snooping 
device
  > 

> > 
> But then:
> > 
Code:

  >   > squeezelite -o sysdefault:CARD=ODROIDHIFI2 -n C4HIFISHIELD2 -s 127.0.0.1

> > 
> seems to take forever / no response.
> Any ideas how to resolve this?
> TIA.

Which OS is on the Odroid and how did you install Squeezelite ?

Have you tried any of the other outputs in the Config string ?

Does the card work with any other software player?

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2023-01-02 Thread Videopac


I'm trying to get squeezelite to work on a Odroid C4 with the Odroid
HifiShield2 DAC HAT.


Code:

squeezelite -l


gives:

Code:

Output devices:
  null   - Discard all samples (playback) or generate 
zero samples (capture)
  goStereo  
  hw:CARD=ODROIDHDMI,DEV=0   - ODROID-HDMI,  - Direct hardware device 
without any conversions
  plughw:CARD=ODROIDHDMI,DEV=0   - ODROID-HDMI,  - Hardware device with all 
software conversions
  sysdefault:CARD=ODROIDHDMI - ODROID-HDMI,  - Default Audio Device
  dmix:CARD=ODROIDHDMI,DEV=0 - ODROID-HDMI,  - Direct sample mixing device
  hw:CARD=ODROIDHIFI2,DEV=0  - ODROID-HIFI2,  - Direct hardware device 
without any conversions
  plughw:CARD=ODROIDHIFI2,DEV=0  - ODROID-HIFI2,  - Hardware device with all 
software conversions
  sysdefault:CARD=ODROIDHIFI2- ODROID-HIFI2,  - Default Audio Device
  dmix:CARD=ODROIDHIFI2,DEV=0- ODROID-HIFI2,  - Direct sample mixing device
  dsnoop:CARD=ODROIDHIFI2,DEV=0  - ODROID-HIFI2,  - Direct sample snooping 
device
  


But then:

Code:

squeezelite -o sysdefault:CARD=ODROIDHIFI2 -n C4HIFISHIELD2 -s 127.0.0.1


seems to take forever / no response.
Any ideas how to resolve this?
TIA.



2x Touch, working on a Odroid-C2/Soekris-DAC/Hypex-Ncore all-in-one
solution.

Videopac's Profile: http://forums.slimdevices.com/member.php?userid=66453
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-12-29 Thread Man in a van


knorst wrote: 
> Ok, worked like a charm!
> I had only had to change the code a little bit, because squeezelite was
> installed directly in the bin folder without a folder called
> "squeezelite".

Thanks for the update. 

It would better be  

Code:


  sudo tar -C /usr/bin -zxf squeezelite.tgz



I really must tidy up my notes :o:o:)

I'll amend the post

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-12-29 Thread knorst


Ok, worked like a charm!
I had only had to change the code a little bit, because squeezelite was
installed directly in the bin folder without a folder called
"squeezelite".



knorst's Profile: http://forums.slimdevices.com/member.php?userid=60507
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-12-27 Thread Man in a van


knorst wrote: 
> Hello,
> 
> I installed squeezelite successfully on Linux mint using the
> included package manager. But it's a rather outdated version (1.8).
> Can anyone provide me with information, on how to install a more
> up-to-date-version?
> 
> Thanks a lot!

You can try this is you wish :)




Code:

sudo /etc/init.d/squeezelite stop
  
  wget -O squeezelite.tgz 
https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1414-x86_64.tar.gz
  
  sudo tar -xzf  squeezelite.tgz -C /usr/bin/squeezelite
  
  sudo /etc/init.d/squeezelite start
  
  rm squeezelite.tgz
  
  sudo /etc/init.d/squeezelite start



It might be necessary to 


Code:

sudo chmod a+x /usr/bin/squeezelite



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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-12-27 Thread knorst


Hello,

I installed squeezelite successfully on Linux mint using the
included package manager. But it's a rather outdated version (1.8).
Can anyone provide me with information, on how to install a more
up-to-date-version?

Thanks a lot!



knorst's Profile: http://forums.slimdevices.com/member.php?userid=60507
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-10-17 Thread zzzap


How feasible is it to have Squeezelite write playing status, sample/bit
rate and gain to /proc? With option not to change volume but simply
output values to file '/proc/squeezelite' for other applications to
read.

Concrete user cases are through helper script run as daemon have
CamillaDSP adjust gain filter and possible SR + option to control an
analog gain control or infrared transmitter.



zzzap's Profile: http://forums.slimdevices.com/member.php?userid=31947
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-18 Thread bpa


Chestroled wrote: 
> Hello, you're probably right, but have to found what have change or
> cause this trouble.
> 
> So, when I play some sound on LMS and got "alsa_open:533 unable to set
> hw params: Broken pipe" , the audio device seems "frozen" :
> 
> > 
Code:

  >   > pi@multiroom:~ $ sudo aplay -D USB0 -vv /root/test1.wav
  > aplay: main:828: audio open error: Device or resource busy

> > 
> 

Why test with USB0 when there is no USB0 defined in attached asound.conf
file 

The verbose option is "-v" or --verbose" not "-vv" - it's possible not
giving out full info.
The option "--dump-hw-params" can sometimes also be helpful.

The utility speaker-test is useful just to sanity check basic audio out
but not to check various formats which is essential for LMS.

Googling ALSA "h/w params: Broken pipe" errors - seems to indicate an
issue with audio device driver not liking a request and this can mneas
more than just formats(ew.g. aysdnchronous, mutip[le) - you may have a
limited device driver. So you need to solely test with aplay to
understand limit & valid settings.

If a device is busy then some process has it open already, often system
sounds.

To avoid problem until you are sure you understand what is happening. 
* Make sure when testing with aplay - all squeezelite process are
stopped, LMS is stopped.
* Make sure all system audio & effects uses the inbuilt sounds card
(e.g. Realtek, headphone socket etc.) - not the USB sound
* If you have Pulseaudio running on your system - make sure these USB
devices are not being accessed by Pulseaudio.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-18 Thread Chestroled


bpa wrote: 
> If squeezelite setup completeed worked OK and all devices worked as you
> expected and you are doing nothign new (i.e. exact same command line)
> but now has broken look at what has changed ?
> 
> Perhaps OS upgrades has changed drivers or other system stuff.
> Has the userid of squeezelite got the permission ?  Does the Linux
> distro requires user of audio hardware to be member of Audio (or
> similar) group.
> 
> Cannot set H/w parameters means
> 1. Unable to set the parameters - access (i.e device name), permissions,
> rights
> or 
> 2. Incorrect/unsupported  parameters values.
> 
> aplay is standard ALSA audio play utility.  You have prepare a test WAV
> file with the audio format you want and use aply to play on each device
> with the correct audio format & ALSA settings.

Hello, you're probably right, but have to found what have change or
cause this trouble.

So, when I play some sound on LMS and got "alsa_open:533 unable to set
hw params: Broken pipe" , the audio device seems "frozen" :


Code:

pi@multiroom:~ $ sudo aplay -D USB0 -vv /root/test1.wav
  aplay: main:828: audio open error: Device or resource busy
  pi@multiroom:~ $ sudo fuser -v /dev/snd/*
  USERPID ACCESS COMMAND
  /dev/snd/controlC0:  root375 f alsactl
  /dev/snd/controlC1:  root375 f alsactl
  /dev/snd/controlC2:  root375 f alsactl
  /dev/snd/controlC3:  root375 f alsactl
  /dev/snd/controlC4:  root375 f alsactl
  /dev/snd/controlC5:  root375 f alsactl
  /dev/snd/controlC6:  root375 f alsactl
  /dev/snd/pcmC3D0p:   root957 F...m squeezelite
  /dev/snd/pcmC5D0p:   root954 F...m squeezelite
  



asound.conf is :


Code:

#USB1
  ctl.USB1 {
  type equal;
  controls "/opt/alsa/USB1.bin";
  }
  
  pcm.USB1 {
  type equal;
  slave.pcm "plughw:USB1";
  controls "/opt/alsa/USB1.bin";
  }
  
  #USB2
  ctl.USB2 {
  type equal;
  controls "/opt/alsa/USB2.bin";
  }
  
  pcm.USB2 {
  type equal;
  slave.pcm "plughw:USB2";
  controls "/opt/alsa/USB2.bin";
  }
  
  #USB3
  ctl.USB3 {
  type equal;
  controls "/opt/alsa/USB3.bin";
  }
  
  pcm.USB3 {
  type equal;
  slave.pcm "plughw:USB3";
  controls "/opt/alsa/USB3.bin";
  }
  
  #USB4
  ctl.USB4 {
  type equal;
  controls "/opt/alsa/USB4.bin";
  }
  
  pcm.USB4 {
  type equal;
  slave.pcm "plughw:USB4";
  controls "/opt/alsa/USB4.bin";
  }
  
  #USB5
  ctl.USB5 {
  type equal;
  controls "/opt/alsa/USB5.bin";
  }
  
  pcm.USB5 {
  type equal;
  slave.pcm "plughw:USB5";
  controls "/opt/alsa/USB5.bin";
  }
  
  #USB6
  ctl.USB6 {
  type equal;
  controls "/opt/alsa/USB6.bin";
  }
  
  pcm.USB6 {
  type equal;
  slave.pcm "plughw:USB6";
  controls "/opt/alsa/USB6.bin";
  }
  



I don't have more knowledge to go further, if you have an idea to found
what's possibly wrong, tell me.

Thanks for help.



Chestroled's Profile: http://forums.slimdevices.com/member.php?userid=59945
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-17 Thread ralphy


Apesbrain wrote: 
> Went to update squeezelite and just noticing the "ffmpeg" versions.  I
> assume these will play files that the standard version will not?  Any
> reason not to use the ffmpeg version?  Thanks.

Yes, the ffmpeg builds will also play wma, wma pro and wma losses
formats natively and use the alac decoder from ffmpeg instead of the
official apple decoder.

ffmpeg support has been broken in squeezelite for several years, until
recently tofurky submitted a PR to fix it.

The 64bit windows build is experimental at this point, as I was just
recently able to port my 32bit ffmpeg 3.2 library build scripts to
visual studio 2017 on win10.

For now, my linux armhf squeezelite build is the only other one that
will be available in the ffmpeg flavour.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-17 Thread bpa


Chestroled wrote: 
> What I don't understand is that system have worked for a long time with
> this structure 

If squeezelite setup completeed worked OK and all devices worked as you
expected and you are doing nothign new (i.e. exact same command line)
but now has broken look at what has changed ?

Perhaps OS upgrades has changed drivers or other system stuff.
Has the userid of squeezelite got the permission ?  Does the Linux
distro requires user of audio hardware to be member of Audio (or
similar) group.

Cannot set H/w parameters means
1. Unable to set the parameters - access (i.e device name), permissions,
rights
or 
2. Incorrect/unsupported  parameters values.

aplay is standard ALSA audio play utility.  You have prepare a test WAV
file with the audio format you want and use aply to play on each device
with the correct audio format & ALSA settings.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-17 Thread Chestroled


bpa wrote: 
> The usual choices are
> 
> hw:USB2
> or 
> plughw:USB2
> 
> These are known to work with squeezelite.
> 
> It's not clear what ALSA setup (and unknown settings/behaviour) would be
> chosen by USB2 so no point debugging with an unknown.
> 
> edit:
> Have you verified each ALSA device with aplay and playing the format of
> audio being offered by LMS ?

Hi, thanks for assistance.

I've tried with these output "hw" and "plughw" with no luck


Code:

[10:36:42.225173] write_cb:145 setting track_start
  [10:36:43.138796] output_thread:803 disabling output
  [10:36:44.640812] output_thread:685 open output device: plughw:USB0
  [10:36:44.640904] alsa_open:354 opening device at: 44100
  [10:36:44.644241] alsa_open:425 opened device plughw:USB0 using format: 
S32_LE sample rate: 44100 mmap: 0
  [10:36:44.644937] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [10:36:44.829799] _output_frames:153 track start sample rate: 48000 
replay_gain: 0
  [10:36:44.840005] output_thread:685 open output device: plughw:USB0
  [10:36:44.840862] alsa_open:354 opening device at: 48000
  [10:36:44.842917] alsa_open:425 opened device plughw:USB0 using format: 
S32_LE sample rate: 48000 mmap: 0
  [10:36:44.843324] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [10:37:25.688255] decode_flush:236 decode flush
  [10:37:25.688509] output_flush:439 flush output buffer
  [10:37:25.699190] decode_flush:236 decode flush
  [10:37:25.699324] output_flush:439 flush output buffer
  [10:37:27.655346] codec_open:264 codec open: 'f'
  [10:37:27.655633] connect_socket:168 connecting to 192.168.0.10:9000
  [10:37:27.656336] stream_sock:604 header: GET 
/stream.mp3?player=00:00:00:00:00:01 HTTP/1.0
  Authorization: Basic c3F1ZWV6ZWJveFhYWDpySUYwNXczaXN2
  
  [10:37:27.743476] stream_thread:335 headers: len: 493
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.0.0 - 1605166211)
  Connection: close
  Content-Type: audio/x-flac
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [10:37:30.764285] output_thread:803 disabling output
  [10:37:30.785995] write_cb:145 setting track_start
  [10:37:34.366224] output_thread:685 open output device: plughw:USB0
  [10:37:34.366325] alsa_open:354 opening device at: 48000
  [10:37:34.369698] alsa_open:425 opened device plughw:USB0 using format: 
S32_LE sample rate: 48000 mmap: 0
  [10:37:34.370397] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [10:37:34.371137] alsa_open:533 unable to set hw params: Broken pipe
  [10:37:39.371281] output_thread:685 open output device: plughw:USB0
  [10:37:39.371971] alsa_open:354 opening device at: 48000
  [10:37:39.375347] alsa_open:425 opened device plughw:USB0 using format: 
S32_LE sample rate: 48000 mmap: 0
  [10:37:39.376133] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [10:37:39.376756] alsa_open:533 unable to set hw params: Broken pipe



> "edit:
> Have you verified each ALSA device with aplay and playing the format of
> audio being offered by LMS ? " 

No, how can achieve that ?

What I don't understand is that system have worked for a long time with
this structure 

Thanks



Chestroled's Profile: http://forums.slimdevices.com/member.php?userid=59945
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread bpa


Apesbrain wrote: 
> Went to update squeezelite and just noticing the "ffmpeg" versions.  I
> assume these will play files that the standard version will not?  Any
> reason not to use the ffmpeg version?  Thanks.

IIRC ffmpeg was used for WMA format.  If player cannot handle WMA
natively, then LMS has to transcode.  WMA transcode support is standard
with LMS under Windows but under Linux or OSX - you need to install
ffmpeg and a plugin.  ffmpeg may not be available for some platforms
(e.g. some NAS, CORE32 ?)



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread Apesbrain


Went to update squeezelite and just noticing the "ffmpeg" versions.  I
assume these will play files that the standard version will not?  Any
reason not to use the ffmpeg version?  Thanks.



Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread bpa


Learned something new. Not quite clear but with ALSA it seems "plug:" is
a prefix before pseudo device. (e.g. "plug:iec958" or "plug:surround21")


so -o plug:USB1 is the same as -o USB1  - so new test did nothing
different to first.

Another reason to try "hw:" or "plughw:"



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread bpa


Chestroled wrote: 
> 
> 
> thanks for feedback.
> 
> This code was from a friend and related to alsa equaliser . So i've
> tried :
> 

The usual choices are

hw:USB2
or 
plughw:USB2

These are known to work with squeezelite.

It's not clear what ALSA setup (and unknown settings/behaviour) would be
chosen by USB2 so no point debugging with an unknown.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread Chestroled


bpa wrote: 
> This is just a comment based on what has been displayed.
> 
> I don't know what "plug:" means in ALSA. Usual prefixes are "hw:" and
> "plughw:" 
> 
> You are using device designation like "plug:USB1"
> 
> Extracting from the  "squeeszelite -l" list of valid devices the
> following are shown as an example for USB1
> 
> There is no "plug:USB1"
> 
> > 
Code:

  >   > 
  > USB1
  > default:CARD=USB1  - USB Audio DAC, USB Audio - Default Audio 
Device
  > sysdefault:CARD=USB1   - USB Audio DAC, USB Audio - Default Audio 
Device
  > front:CARD=USB1,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  > surround21:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  > surround40:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  > surround41:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  > surround50:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  > surround51:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  > surround71:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  > iec958:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  > dmix:CARD=USB1,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  > dsnoop:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  > hw:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  > plughw:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions 
  > 
  > 

> > 


Hello dear,

thanks for feedback.

This code was from a friend and related to alsa equaliser . So i've
tried :


Code:

sudo squeezelite -z -n Cuisine -m 00:00:00:00:00:01 -o USB0 -a 80:::0 -r 
32000,44100,48000 -C 5 -G 4:H -d all=info -f ~/squeezelite_cui.log
  sudo squeezelite -z -n Sam -m 00:00:00:00:00:02 -o USB2 -a 80:::0 -r 
32000,44100,48000 -C 5 -G 17:H -d all=info -f ~/squeezelite_sam.log



it play when run some local music, but If I pick as example a YouTube
sound it stuck again :


Code:

[12:42:59.928432] alsa_open:354 opening device at: 48000
  [12:42:59.943950] alsa_open:425 opened device USB2 using format: S32_LE 
sample rate: 48000 mmap: 0
  [12:42:59.950027] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [12:42:59.954912] alsa_open:533 unable to set hw params: Broken pipe
  [12:43:04.955084] output_thread:685 open output device: USB2
  [12:43:04.955847] alsa_open:354 opening device at: 48000
  [12:43:04.970565] alsa_open:425 opened device USB2 using format: S32_LE 
sample rate: 48000 mmap: 0
  [12:43:04.976592] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [12:43:04.981410] alsa_open:533 unable to set hw params: Broken pipe
  




Chestroled's Profile: http://forums.slimdevices.com/member.php?userid=59945
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread bpa


Chestroled wrote: 
> Hello, anyone have an idea to found what's wrong?

This is just a comment based on what has been displayed.

I don't know what "plug:" means in ALSA. Usual prefixes are "hw:" and
"plughw:" 

You are using device designation like "plug:USB1"

Extracting from the  "squeeszelite -l" list of valid devices the
following are shown as an example for USB1

There is no "plug:USB1"


Code:


  USB1
  default:CARD=USB1  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB1   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB1,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB1,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB1,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions 
  
  




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-16 Thread Chestroled


Chestroled wrote: 
> Hello squeezebox community !
> 
> I'm actually facing a strange problem with squeezelite.
> 
> My goal is to achieve a multiroom rack system based on a Raspberry
> running 6 squeezelite instance and 6 PCM2704 chinese DAC
> 
> The architecture system is : .


Hello, anyone have an idea to found what's wrong?


seems problems happen when trying to sync 2 players .


Code:

[10:34:53.501309] opus_decompress:154 setting track_start
  [10:34:53.532072] _output_frames:65 start buffer frames: 17928
  [10:34:53.532282] _output_frames:153 track start sample rate: 48000 
replay_gain: 0
  [10:34:53.542391] output_thread:685 open output device: plug:USB2
  [10:34:53.544063] alsa_open:354 opening device at: 48000
  [10:34:53.552262] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 48000 mmap: 0
  [10:34:53.557395] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [10:37:25.804940] stream_thread:408 end of stream (5041804 bytes)
  [10:39:11.357003] decode_flush:236 decode flush
  [10:39:11.357236] output_flush:439 flush output buffer
  [10:39:15.724131] decode_flush:236 decode flush
  [10:39:15.724199] output_flush:439 flush output buffer
  [10:39:15.834334] codec_open:264 codec open: 'm'
  [10:39:15.834437] codec_open:281 closing codec: 'u'
  [10:39:15.834571] connect_socket:168 connecting to 192.168.0.10:9000
  [10:39:15.835157] stream_sock:604 header: GET 
/stream.mp3?player=00:00:00:00:00:02 HTTP/1.0
  Authorization: Basic c3F1ZWV6ZWJveFhYWDpqS2RPWWJNRnVN
  
  
  
  [10:39:15.936908] stream_thread:335 headers: len: 491
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.0.0 - 1605166211)
  Connection: close
  Content-Type: audio/mpeg
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=1; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=1; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [10:39:16.031695] _check_lame_header:163 gapless: skip: 2257 samples: 9006396 
delay: 1105 padding: 1139
  [10:39:16.032311] mad_decode:247 setting track_start
  [10:39:16.199096] _output_frames:153 track start sample rate: 44100 
replay_gain: 0
  [10:39:16.209414] output_thread:685 open output device: plug:USB2
  [10:39:16.210322] alsa_open:354 opening device at: 44100
  [10:39:16.221973] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 44100 mmap: 0
  [10:39:16.229218] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [10:39:16.235210] alsa_open:533 unable to set hw params: Broken pipe
  [10:39:21.235585] output_thread:685 open output device: plug:USB2
  [10:39:21.236294] alsa_open:354 opening device at: 44100
  [10:39:21.246334] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 44100 mmap: 0
  [10:39:21.252601] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [10:39:21.257615] alsa_open:533 unable to set hw params: Broken pipe
  [10:39:26.257778] output_thread:685 open output device: plug:USB2
  [10:39:26.258439] alsa_open:354 opening device at: 44100
  [10:39:26.267008] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 44100 mmap: 0
  [10:39:26.272669] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [10:39:26.276967] alsa_open:533 unable to set hw params: Broken pipe
  [10:39:31.277111] output_thread:685 open output device: plug:USB2
  [10:39:31.277816] alsa_open:354 opening device at: 44100
  [10:39:31.287270] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 44100 mmap: 0
  [10:39:31.292702] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [10:39:31.297011] alsa_open:533 unable to set hw params: Broken pipe
  [10:39:36.297215] output_thread:685 open output device: plug:USB2
  [10:39:36.298603] alsa_open:354 opening device at: 44100
  [10:39:36.312111] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 44100 mmap: 0
  [10:39:36.320311] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [10:39:36.325942] alsa_open:533 unable to set hw params: Broken pipe




Chestroled's Profile: http://forums.slimdevices.com/member.php?userid=59945
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-15 Thread bernid


Thanks @Man in a van and @ralphy.
Ralphy I tried to apply to my Squeezelite -X a -a :1 parametr to  play
16/44.1kHz files but have no sound:

Code:

C:\Program 
Files\WindowsApps\16237RGregDawson.Squeezelite-X_2.11.8.0_x64__qhedj8x0bjmhg\squeezelite-x64.exe
 -n Squeezbern-X -s 10.10.11.1 -C 1 -a :1 -o Speakers (Realtek High Definition 
Audio) [Windows WASAPI] -m 48:f1:7f:c7:bd:0c -M Squeezelite-X -f 
C:\Users\berni\Desktop\Squeezelite.log.txt -d all=info 
  [16:19:19.366] stream_init:458 init stream
  [16:19:19.366] output_init_pa:574 init output
  [16:19:19.366] output_init_pa:594 requested latency: 0
  [16:19:19.758] test_open:197 opening WASAPI device in exclusive mode
  [16:19:19.867] output_init_common:426 supported rates: 48000 44100 
  [16:19:19.867] decode_init:153 init decode
  [16:19:19.868] register_dsd:908 using dsd to decode dsf,dff
  [16:19:19.868] register_alac:549 using alac to decode alc
  [16:19:19.868] register_faad:663 using faad to decode aac
  [16:19:19.868] register_vorbis:385 using vorbis to decode ogg
  [16:19:19.868] register_opus:328 using opus to decode ops
  [16:19:19.868] register_flac:336 using flac to decode ogf,flc
  [16:19:19.868] register_pcm:483 using pcm to decode aif,pcm
  [16:19:19.868] register_mad:423 using mad to decode mp3
  [16:19:19.868] slimproto:898 connecting to 10.10.11.1:3483
  [16:19:19.875] slimproto:937 connected
  [16:19:19.875] sendHELO:148 mac: 48:f1:7f:c7:bd:0c
  [16:19:19.875] sendHELO:150 cap: 
CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=v1.9.9-1401,ModelName=Squeezelite-X,MaxSampleRate=48000,dsf,dff,alc,aac,ogg,ops,ogf,flc,aif,pcm,mp3
  [16:19:19.879] decode_flush:236 decode flush
  [16:19:19.879] output_flush:439 flush output buffer
  [16:19:19.892] codec_open:264 codec open: 'f'
  [16:19:19.892] connect_socket:168 connecting to 10.10.11.1:9000
  [16:19:19.892] stream_sock:604 header: GET 
/stream.mp3?player=48:f1:7f:c7:bd:0c HTTP/1.0
  
  
  [16:19:19.907] stream_thread:335 headers: len: 493
  HTTP/1.1 200 OK
  Server: Logitech Media Server (8.3.0 - 1649774106)
  Connection: close
  Content-Type: audio/x-flac
  Set-Cookie: Squeezebox-albumView=; path=/
  Set-Cookie: Squeezebox-expandPlayerControl=true; path=/
  Set-Cookie: Squeezebox-expanded-MY_MUSIC=1; path=/
  Set-Cookie: Squeezebox-expanded-FAVORITES=0; path=/
  Set-Cookie: Squeezebox-expanded-PLUGINS=0; path=/
  Set-Cookie: Squeezebox-expanded-PLUGIN_MY_APPS_MODULE_NAME=0; path=/
  Set-Cookie: Squeezebox-expanded-RADIO=1; path=/
  
  
  [16:19:20.001] pa_monitor:284 output on
  [16:19:20.001] _pa_open:384 opening WASAPI device in exclusive mode
  [16:19:20.015] _pa_open:396 error opening device 8 - Speakers (Realtek High 
Definition Audio) [Windows WASAPI] : Invalid device
  [16:19:20.015] pa_monitor:290 probing device Speakers (Realtek High 
Definition Audio) [Windows WASAPI]
  [16:19:20.480] pa_monitor:295 device reopen
  [16:19:20.480] _pa_open:384 opening WASAPI device in exclusive mode
  [16:19:20.531] _pa_open:396 error opening device 8 - Speakers (Realtek High 
Definition Audio) [Windows WASAPI] : Invalid device
  [16:19:20.532] write_cb:145 setting track_start
  [16:19:20.561] pa_monitor:290 probing device Speakers (Realtek High 
Definition Audio) [Windows WASAPI]
  [16:19:20.971] pa_monitor:295 device reopen
  [16:19:20.971] _pa_open:384 opening WASAPI device in exclusive mode
  [16:19:20.983] _pa_open:396 error opening device 8 - Speakers (Realtek High 
Definition Audio) [Windows WASAPI] : Invalid device
  [16:19:20.983] pa_monitor:290 probing device Speakers (Realtek High 
Definition Audio) [Windows WASAPI]
  [16:19:21.283] pa_monitor:295 device reopen
  [16:19:21.283] _pa_open:384 opening WASAPI device in exclusive mode
  [16:19:21.297] _pa_open:396 error opening device 8 - Speakers (Realtek High 
Definition Audio) [Windows WASAPI] : Invalid device
  [16:19:21.297] pa_monitor:290 probing device Speakers (Realtek High 
Definition Audio) [Windows WASAPI]
  [16:19:21.618] pa_monitor:295 device reopen
  [16:19:21.618] _pa_open:384 opening WASAPI device in exclusive mode
  [16:19:21.632] _pa_open:396 error opening device 8 - Speakers (Realtek High 
Definition Audio) [Windows WASAPI] : Invalid device
  [16:19:21.633] pa_monitor:290 probing device Speakers (Realtek High 
Definition Audio) [Windows WASAPI]
  [16:19:21.980] pa_monitor:295 device reopen
  [16:19:21.980] _pa_open:384 opening WASAPI device in exclusive mode
  [16:19:21.985] _pa_open:396 error opening device 8 - Speakers (Realtek High 
Definition Audio) [Windows WASAPI] : Invalid device
  [16:19:21.985] pa_monitor:290 probing device Speakers (Realtek High 
Definition Audio) [Windows WASAPI]
  [16:19:22.309] pa_monitor:295 device reopen


Should I chane something in my squeezelite setup?



bernid's Profile: 

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-15 Thread ralphy


bernid wrote: 
> Hi, 
> I have several linux based squeezelie players. I wanted also use
> LMS/squeezelite on my laptop (WIN11). So i installed Squeezelite-X on my
> WIN11.
> I would like to have the best sound quality on my windows machine so I
> thought about WASAPI.
> Unfortunately it turns out that in WASAPI mode squezelite suports only
> one sample rate 48k... 
> 
> What do you suggest guys: what other squezzelite output to choose to
> have the best SQ (For example to bypass the WIN mixer)?
> I see (apart from WASAPI): MME, Windows Direct Sound, Windows WDM-KS
> I've check that squeezelite recognizes following sampling rates: 
> >   >   > 
  - Speakers (Realtek(R) Audio) [MME] supported rates: 384000 352800
  > 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000
  > 11025 8000  
  - [Windows DirectSound] supported rates: 192000 176400 96000 88200
  > 48000 44100 32000 24000 22500 16000 12000 11025 8000 
  - Realtek HD Audio output with SST [Windows WDM-KS] supported rates:
  > 192000 176400 96000 88200 48000 44100 32000 24000 16000 11025 8000
  > > > 
> Why MME suports sampling rates up to 384000 and Windows WDM-KS only
> max 192000?
> If Windows WDM-KS would be the best option how to set LMS to transcode
> tracks higher than 192k to 192k and 176k4?
> Regards, 
> bern

Shared mode is the default for WASAPI devices, which only works at the
rate set in the control panel. 
You can add -u E to have squeezelite resample all streams to the one
supported sample rate


Code:

[08:22:41.471] output_init_common:426 supported rates: 44100
  [08:22:41.491] _pa_open:410 opened device 11 - Digital Output Device (SPDIF 
Out) (SigmaTel High Definition Audio CODEC) [Windows WASAPI] at 44100 latency 
20 ms
  


Or you need to add -a :1 to the command line to enable exclusive mode
for WASAPI devices for native sample rate support.


Code:

[08:22:30.972] output_init_common:426 supported rates: 192000 176400 96000 
88200 48000 44100
  [08:22:30.972] _pa_open:384 opening WASAPI device in exclusive mode
  [08:22:30.988] _pa_open:410 opened device 11 - Digital Output Device (SPDIF 
Out) (SigmaTel High Definition Audio CODEC) [Windows WASAPI] at 44100 latency 
19 ms




Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-14 Thread Man in a van


@BERNID
I don't know if this is of any help (or interest) to you, but here goes
:rolleyes::p:)

I keep a copy of LMS on a Windows 10 Pro Desktop

> Logitech Media Server Status
> Logitech Media Server Version: 8.3.0 - 1646629479 @ Mon Mar 7 06:17:02
> WEST 2022
> Hostname: CoolerMaster
> Server IP Address: 192.168.1.112
> Server HTTP Port Number: 9000
> Operating system: Windows 10 - EN - cp1252
> Platform Architecture: 8664
> Perl Version: 5.14.1 - MSWin32-x86-multi-thread
> Audio::Scan: 1.05
> IO::Socket::SSL: 2.068
> Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
> Total Players Recognized: 1

My default Windows audio output is an iFi Audio iDSD Nano headphone dac.

I have the Local Player Plugin installed.

I have updated Squeezelite, the 32bit plugin (located at
C:\ProgramData\Squeezebox\Cache\InstalledPlugins\Plugins\LocalPlayer\Bin)
to 

> SqueezeLite
> Player Model: SqueezeLite
> Player Type: squeezelite
> Firmware: v1.9.9-1401
> Player IP Address: 192.168.1.112

Configuration is available under the Advanced tab in LMS Settings

It seems to work quite well :)

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-14 Thread bernid


Hi, 
I have several linux based squeezelie players. I wanted also use
LMS/squeezelite on my laptop (WIN11). So i installed Squeezelite-X on my
WIN11.
I would like to have the best sound quality on my windows machine so I
thought about WASAPI.
Unfortunately it turns out that in WASAPI mode squezelite suports only
one sample rate 48k... 

What do you suggest guys: what other squezzelite output to choose to
have the best SQ (For example to bypass the WIN mixer)?
I see (apart from WASAPI): MME, Windows Direct Sound, Windows WDM-KS
I've check that squeezelite recognizes following sampling rates: 

- Speakers (Realtek(R) Audio) [MME] supported rates: 384000 352800
  192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000
  11025 8000  
- [Windows DirectSound] supported rates: 192000 176400 96000 88200
  48000 44100 32000 24000 22500 16000 12000 11025 8000 
- Realtek HD Audio output with SST [Windows WDM-KS] supported rates:
  192000 176400 96000 88200 48000 44100 32000 24000 16000 11025 8000
  
Why MME suports sampling rates up to 384000 and Windows WDM-KS only max
192000?
If Windows WDM-KS would be the best option how to set LMS to transcode
tracks higher than 192k to 192k and 176k4?
Regards, 
bern



bernid's Profile: http://forums.slimdevices.com/member.php?userid=37408
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-12 Thread Chestroled


Code:

squeezelite -l
  Output devices:
  null   - Discard all samples (playback) or generate 
zero samples (capture)
  USB1
  USB2 
  USB3
  USB4
  USB5
  USB6
  default:CARD=sndrpihifiberry   - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Default Audio Device
  sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Default Audio Device
  dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct sample mixing device
  dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct sample snooping device
  hw:CARD=sndrpihifiberry,DEV=0  - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct hardware device without any conversions
  plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Hardware device with all software conversions
  default:CARD=USB6  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB6   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB6,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB6,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions
  default:CARD=USB3  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB3   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB3,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB3,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions
  default:CARD=USB5  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB5   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB5,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio 

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-12 Thread Chestroled


Code:

squeezelite -l
  Output devices:
  null   - Discard all samples (playback) or generate 
zero samples (capture)
  USB1
  USB2 
  USB3
  USB4
  USB5
  USB6
  default:CARD=sndrpihifiberry   - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Default Audio Device
  sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Default Audio Device
  dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct sample mixing device
  dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct sample snooping device
  hw:CARD=sndrpihifiberry,DEV=0  - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct hardware device without any conversions
  plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Hardware device with all software conversions
  default:CARD=USB6  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB6   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB6,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB6,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions
  default:CARD=USB3  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB3   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB3,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB3,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions
  default:CARD=USB5  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB5   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB5,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio 

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-11 Thread Chestroled


Code:

squeezelite -l
  Output devices:
  null   - Discard all samples (playback) or generate 
zero samples (capture)
  USB1
  USB2
  USB3
  USB4
  USB5
  USB6
  default:CARD=sndrpihifiberry   - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Default Audio Device
  sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Default Audio Device
  dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct sample mixing device
  dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct sample snooping device
  hw:CARD=sndrpihifiberry,DEV=0  - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Direct hardware device without any conversions
  plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi 
pcm5102a-hifi-0 - Hardware device with all software conversions
  default:CARD=USB6  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB6   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB6,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB6,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB6,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions
  default:CARD=USB3  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB3   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB3,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio Output
  dmix:CARD=USB3,DEV=0   - USB Audio DAC, USB Audio - Direct sample 
mixing device
  dsnoop:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Direct sample 
snooping device
  hw:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Direct hardware 
device without any conversions
  plughw:CARD=USB3,DEV=0 - USB Audio DAC, USB Audio - Hardware device 
with all software conversions
  default:CARD=USB5  - USB Audio DAC, USB Audio - Default Audio 
Device
  sysdefault:CARD=USB5   - USB Audio DAC, USB Audio - Default Audio 
Device
  front:CARD=USB5,DEV=0  - USB Audio DAC, USB Audio - Front speakers
  surround21:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 2.1 Surround 
output to Front and Subwoofer speakers
  surround40:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 4.0 Surround 
output to Front and Rear speakers
  surround41:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 4.1 Surround 
output to Front, Rear and Subwoofer speakers
  surround50:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 5.0 Surround 
output to Front, Center and Rear speakers
  surround51:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 5.1 Surround 
output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - 7.1 Surround 
output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=USB5,DEV=0 - USB Audio DAC, USB Audio - IEC958 (S/PDIF) 
Digital Audio 

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-11 Thread Chestroled


Hello squeezebox community !

I'm actually facing a strange problem with squeezelite.

My goal is to achieve a multiroom rack system based on a Raspberry
running 6 squeezelite instance and 6 PCM2704 chinese DAC

The architecture system is :

Since these chinese DAC always got the same serial number or PID VID , I
firstly have to map USB permanently to avoid DAC mismatching at reboot
.

I've done that by use a rules.d as follow : 


Code:

SUBSYSTEM!="sound", GOTO="my_usb_audio_end"
  ACTION!="add", GOTO="my_usb_audio_end"
  
  
DEVPATH=="/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4.4/1-1.2.4.4:1.0/sound/card?",
 ATTR{id}="USB1"
  
DEVPATH=="/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4.2/1-1.2.4.2:1.0/sound/card?",
 ATTR{id}="USB2"
  
DEVPATH=="/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2/1-1.2.2/1-1.2.2:1.0/sound/card?",
 ATTR{id}="USB3"
  
DEVPATH=="/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4.3/1-1.2.4.3:1.0/sound/card?",
 ATTR{id}="USB4"
  
DEVPATH=="/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3:1.0/sound/card?",
 ATTR{id}="USB5"
  
DEVPATH=="/devices/platform/soc/3f98.usb/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1:1.0/sound/card?",
 ATTR{id}="USB6"
  
  
  LABEL="my_usb_audio_end"



I've then definited an alsa conf tog get correct audio output and
mixer/equalizer 


Code:

#USB1
  ctl.USB1 {
  type equal;
  controls "/opt/alsa/USB1.bin";
  }
  
  pcm.USB1 {
  type equal;
  slave.pcm "plughw:USB1";
  controls "/opt/alsa/USB1.bin";
  }
  
  #USB2
  ctl.USB2 {
  type equal;
  controls "/opt/alsa/USB2.bin";
  }
  
  pcm.USB2 {
  type equal;
  slave.pcm "plughw:USB2";
  controls "/opt/alsa/USB2.bin";
  }
  
  #USB3
  ctl.USB3 {
  type equal;
  controls "/opt/alsa/USB3.bin";
  }
  
  pcm.USB3 {
  type equal;
  slave.pcm "plughw:USB3";
  controls "/opt/alsa/USB3.bin";
  }
  
  #USB4
  ctl.USB4 {
  type equal;
  controls "/opt/alsa/USB4.bin";
  }
  
  pcm.USB4 {
  type equal;
  slave.pcm "plughw:USB4";
  controls "/opt/alsa/USB4.bin";
  }
  
  #USB5
  ctl.USB5 {
  type equal;
  controls "/opt/alsa/USB5.bin";
  }
  
  pcm.USB5 {
  type equal;
  slave.pcm "plughw:USB5";
  controls "/opt/alsa/USB5.bin";
  }
  
  #USB6
  ctl.USB6 {
  type equal;
  controls "/opt/alsa/USB6.bin";
  }
  
  pcm.USB6 {
  type equal;
  slave.pcm "plughw:USB6";
  controls "/opt/alsa/USB6.bin";
  }
  



I then got a service than run an sh bash script as follow :


Code:

#! /bin/sh
  
  # Run mutliple squeezelite instance as deamon 
  
  sudo squeezelite -z -n Cuisine -m 00:00:00:00:00:01 -o plug:USB1 -a 80:::0 -r 
32000,44100,48000 -C 5 -G 4:H -d all=info -f ~/squeezelite_cui.log
  sudo squeezelite -z -n Sam -m 00:00:00:00:00:02 -o plug:USB2 -a 80:::0 -r 
32000,44100,48000 -C 5 -G 17:H -d all=info -f ~/squeezelite_sam.log
  sudo squeezelite -z -n Sdb -m 00:00:00:00:00:03 -o plug:USB3 -a 80:::0 -r 
32000,44100,48000 -C 5 -G 27:H -f ~/squeezelite_sdb.log
  sudo squeezelite -z -n Chambre_parents -m 00:00:00:00:00:04 -a 80:::0 -r 
32000,44100,48000 -o plug:USB4 -C 5 -G 22:H -f ~/squeezelite_ch_par.log
  sudo squeezelite -z -n Exterieur -m 00:00:00:00:00:05 -a 80:::0 -r 
32000,44100,48000 -o plug:USB5 -C 5 -G 19:H -f ~/squeezelite_ext.log
  sudo squeezelite -z -n Free -m 00:00:00:00:00:06 -a 80:::0 -r 
32000,44100,48000 -o plug:USB6 -C 5 -G 26:H -f ~/squeezelite_res.log
  
  



_*The_problem_*_

all is apparently work especially with web radio it seems ok , but when
I change a song or play a youtube sound, there is no more sound output .
Why ? I don't know, tried a lot things, but since i'm not really expert,
cannot facing what's going wrong .

Logs of one squeezlite instance for example : 


Code:

[17:29:52.227568] write_cb:145 setting track_start
  [17:29:54.889190] output_thread:685 open output device: plug:USB2
  [17:29:54.889348] alsa_open:354 opening device at: 44100
  [17:29:54.894290] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 44100 mmap: 0
  [17:29:54.897344] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3528 
period size: 882
  [17:29:55.021197] _output_frames:153 track start sample rate: 48000 
replay_gain: 0
  [17:29:55.031401] output_thread:685 open output device: plug:USB2
  [17:29:55.032327] alsa_open:354 opening device at: 48000
  [17:29:55.037626] alsa_open:425 opened device plug:USB2 using format: S32_LE 
sample rate: 48000 mmap: 0
  [17:29:55.040597] alsa_open:516 buffer: 80 period: 4 -> buffer size: 3840 
period size: 960
  [17:29:55.048711] stream_thread:408 end of stream (1438987 bytes)
  [17:30:09.346598] _output_frames:73 skip 1200 of 1200 frames
  [17:30:15.869238] decode_thread:100 decode complete
  [17:30:24.665205] decode_flush:236 decode flush
  [17:30:24.665269] output_flush:439 flush output buffer
  [17:30:24.686591] output_thread:803 

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-07 Thread soufy


soufy wrote: 
> First of all: Thanks a lot for a great piece of Software!
> 
> After moving to Linux Mint 20.3 Cinnamon from Win10/Squeezelite-X I have
> installed the ALSA version 1.8.4.1 build1 squeezelite package. At first,
> for a few days it worked wonderfully, no problems whatsoever. It showed
> up under Player as Squeezelite-X.
> 
> Being new to Linux I did quite some software testing - mostly, using the
> onboard Software Manager.
> Until the client for whatever reason did not show up anymore.
> Tried re-installing, tried the PortAudio version instead - nothing
> helped. The process is running, but the client doesn't show up in the
> system.
> 
> Not being familiar with trouble shooting in Linux at all, can somebody
> give me some advice what to try to make the client reappear?

...it was the Firewall
Great pieces of Software (Linux Mint & Squeezelite)!



soufy's Profile: http://forums.slimdevices.com/member.php?userid=72727
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-04-07 Thread soufy


First of all: Thanks a lot for a great piece of Software!

After moving to Linux Mint 20.3 Cinnamon from Win10/Squeezelite-X I have
installed the ALSA version 1.8.4.1 build1 squeezelite package. At first,
for a few days it worked wonderfully, no problems whatsoever. It showed
up under Player as Squeezelite-X.

Being new to Linux I did quite some software testing - mostly, using the
onboard Software Manager.
Until the client for whatever reason did not show up anymore.
Tried re-installing, tried the PortAudio version instead - nothing
helped. The process is running, but the client doesn't show up in the
system.

Not being familiar with trouble shooting in Linux at all, can somebody
give me some advice what to try to make the client reappear?



soufy's Profile: http://forums.slimdevices.com/member.php?userid=72727
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-27 Thread bpa


Taking Ralphy's advice - my suggested command line would be now

Code:


  squeezelite -n AES -a ::24:1 -u E -Z 38400 -r 48000-48000 -d all=debug -o 
hw:CARD=RAVENNA
  



If choppiness continue try increasing ALSA buffer size such as 

Code:


  squeezelite -n AES -a 80:4:24:1 -u E -Z 38400 -r 48000-48000 -d all=debug -o 
hw:CARD=RAVENNA
  



"Softness" may be due to the LMS doing volume control and possibly Gain
according to tags.  If you want to do like-for-like comparison with
"aplay" try changing 
WebUI Settings/Player/Audio/Volume Control to "Output level is fixed at
100%"

sudo (or membership of Audio group)  maybe necessary to change the mmap
options to get rid of "error" message in Squeezelite log or set realtime
priority.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-26 Thread bpa


ralphy wrote: 
> You need to add -u E to the squeezelite command line to have it resample
> streams that are not 48K.
I always thought that LMS will take into account player capabilities
when resampling. (e.g. player only supporting  44.1kHz and 48kHz - LMS
will re-sample if a 96kHz stream is played) 
Is 48k only a special case ?
Does LMS always assume that a player can play 44.1kHz ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-26 Thread ralphy


You need to add -u E to the squeezelite command line to have it resample
streams that are not 48K.

You should also add -Z 384000 to the squeezelite options to avoid LMS
resampling streams that have a higher sample rate than 48K, since with
the -u E option squeezelite will resample it again.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-25 Thread bpa


s25a wrote: 
> Both create issues (Packets missing) on my Audio DSP.

Yes, you seem to be playing a 44.1kHz MPEG4 file but for some reason LMS
is not resampling and even though squeezelite is setup to be 48000 only
- squeezelite then reopens the ALSA device at 44100 - this is not right
and probably causing the DSP reports.
I need to try to reproduce this scenario to check if there is a bug in
LMS with resampling in MPEG4 file

What are the characteristics of the file you are trying to play (i.e.
what does LMS say the file is ? - drill down in LHS pane in WebGUI )
Have you changed any LMS FileType settings ?

> If you use the plug:source_1 there are no issues on the DSP however
> still a lot of strange outputs in the squeeze log and sound problems.
It plays without DSP issues because resampling is now occurring at the
source_1 device. 
Squeezelite will handle volume (and Gain tags) so audio can sound "soft"
because volume is different to aplay which does not do volume control.

Choppiness is usually associated with mismatched buffer and/or period
settings. Trying increasing buffer from 40 to 80 - leave periods at 4.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-25 Thread s25a

Hi,

> What is the result of :
> ls -l /dev/snd


Code:

a@audioserver:~$ ls -l /dev/snd
  insgesamt 0
  drwxr-xr-x 2 root root   60 24. Mär 20:05 by-id
  drwxr-xr-x 2 root root  100 24. Mär 20:06 by-path
  crw-rw 1 root audio 116, 14 24. Mär 20:05 controlC0
  crw-rw 1 root audio 116,  3 24. Mär 20:05 controlC1
  crw-rw 1 root audio 116, 17 24. Mär 20:06 controlC2
  crw-rw 1 root audio 116, 12 24. Mär 20:05 hwC0D0
  crw-rw 1 root audio 116, 13 24. Mär 20:05 hwC0D2
  crw-rw 1 root audio 116,  5 24. Mär 20:05 pcmC0D0c
  crw-rw 1 root audio 116,  4 24. Mär 20:05 pcmC0D0p
  crw-rw 1 root audio 116, 11 24. Mär 20:05 pcmC0D10p
  crw-rw 1 root audio 116,  6 24. Mär 20:05 pcmC0D1p
  crw-rw 1 root audio 116,  7 24. Mär 20:05 pcmC0D3p
  crw-rw 1 root audio 116,  8 24. Mär 20:05 pcmC0D7p
  crw-rw 1 root audio 116,  9 24. Mär 20:05 pcmC0D8p
  crw-rw 1 root audio 116, 10 24. Mär 20:05 pcmC0D9p
  crw-rw 1 root audio 116,  2 24. Mär 20:05 pcmC1D0p
  crw-rw 1 root audio 116, 16 24. Mär 20:06 pcmC2D0c
  crw-rw 1 root audio 116, 15 25. Mär 14:54 pcmC2D0p
  crw-rw 1 root audio 116,  1 24. Mär 20:05 seq
  crw-rw 1 root audio 116, 33 24. Mär 20:05 timer



> What was the result of the previous suggestions, post logs.
> Code:
> squeezelite -n AES -a ::24:1 -r 48000-48000 -d all=debug -o
> hw:CARD=RAVENNA
> and since it is not clear whether mmap is supported also try
> Code:
> squeezelite -n AES -a ::24:0 -r 48000-48000 -d all=debug -o
> hw:CARD=RAVENNA

https://pastebin.com/c0kcxKmq
https://pastebin.com/Fm8wz1cz

Both create issues (Packets missing) on my Audio DSP.

If you use the plug:source_1 there are no issues on the DSP however
still a lot of strange outputs in the squeeze log and sound problems.

Thank you all for support and help.

S



s25a's Profile: http://forums.slimdevices.com/member.php?userid=65256
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-25 Thread bpa


s25a wrote: 
> the developer of the RAVENNA Driver supported me and suggested not to
> use the Ravenna card directly but to use it via ALSA plugin.
> 
> So I created this configuration file in /etc/asound.conf

As squeezelite is still opened with 44100 and S32_LE - this is not doing
what is expected and may be adding to confusion rather than helping 

> > 
Code:

  >   > [07:00:04.393180] alsa_open:425 opened device plug:source_1 using 
format: S32_LE sample rate: 44100 mmap: 1
  > [07:00:04.393230] alsa_open:516 buffer: 40 period: 4 -> buffer size: 220 
period size: 44

> > 

It may be better to follow a single line of problem solving to
conclusion rather than jump around.

What was the result of the previous suggestions, post logs.

Code:

squeezelite -n AES -a ::24:1 -r 48000-48000 -d all=debug -o hw:CARD=RAVENNA



and since it is not clear whether mmap is supported also try 

Code:

squeezelite -n AES -a ::24:0 -r 48000-48000 -d all=debug -o hw:CARD=RAVENNA






WRT source_1.  Choppiness is often the result of inappropriate ALSA
buffer and period settings.
Probably there is also resampling happening which may be not be helpful.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-25 Thread th2j


s25a wrote: 
> 
> However the sound was broken. Too soft, choppy. In the log file I saw
> lots of strange outputs. I guess there is just a minor config issue.
> Would appreciate if someone could support here. Thanks a lot.
> 



What is the result of :
ls -l /dev/snd

You can try that :
sudo usermod squeezelite -aG audio



th2j's Profile: http://forums.slimdevices.com/member.php?userid=72679
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-25 Thread s25a


Hi everyone,

the developer of the RAVENNA Driver supported me and suggested not to
use the Ravenna card directly but to use it via ALSA plugin.

So I created this configuration file in /etc/asound.conf


Code:


  pcm.source_1 {
  type dmix
  ipc_key 0x1
  slave {
  pcm "hw:CARD=RAVENNA"
  buffer_size 4096
  channels 4
  rate 48000
  format S24_3LE
  }
  bindings { 0 0 1 1 }
  }
  



I tested first with "speakertest" and "aplay":


Code:

sudo speaker-test -D plug:source_1 -r 48000 -c 2 -t sine
  sudo aplay --dump-hw-params -D plug:source_1 -r 48000 -c 2 -f S24_3LE 
test48.wav
  



Both worked without any issues.

Than I started squeezelite:


Code:

a@audioserver:~/programs$ sudo ./squeezelite -n AES -d all=debug -o 
plug:source_1



Now the AES Receiver (Audio-DSP) connected without any issues (Had
missing packets before) and I could play a track in LMS.

However the sound was broken. Too soft, choppy. In the log file I saw
lots of strange outputs. I guess there is just a minor config issue.
Would appreciate if someone could support here. Thanks a lot.


Code:

a@audioserver:~/programs$ sudo ./squeezelite -n AES -d all=debug -o 
plug:source_1
  [07:00:04.387295] stream_init:454 init stream
  [07:00:04.387376] stream_init:455 streambuf size: 2097152
  [07:00:04.388956] output_init_alsa:936 init output
  [07:00:04.388974] output_init_alsa:976 requested alsa_buffer: 40 alsa_period: 
4 format: any mmap: 1
  [07:00:04.388984] output_init_common:360 outputbuf size: 3528000
  [07:00:04.389013] output_init_common:384 idle timeout: 0
  [07:00:04.389659] ALSA snd_pcm_hw_open:1715 open '/dev/snd/pcmC2D0p' failed 
(-77)
  [07:00:04.390609] output_init_common:426 supported rates: 1536000 1411200 
768000 705600 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 
22500 16000 12000 11025 8000
  [07:00:04.392087] output_init_alsa:1002 memory locked
  [07:00:04.392117] output_init_alsa:1008 glibc detected using mallopt
  [07:00:04.392197] output_thread:685 open output device: plug:source_1
  [07:00:04.392204] output_init_alsa:1028 set output sched fifo rt: 45
  [07:00:04.392517] alsa_open:354 opening device at: 44100
  [07:00:04.393180] alsa_open:425 opened device plug:source_1 using format: 
S32_LE sample rate: 44100 mmap: 1
  [07:00:04.393230] alsa_open:516 buffer: 40 period: 4 -> buffer size: 220 
period size: 44
  [07:00:04.393339] decode_init:153 init decode
  [07:00:04.393395] register_dsd:908 using dsd to decode dsf,dff
  [07:00:04.393408] register_alac:549 using alac to decode alc
  [07:00:04.393416] register_faad:663 using faad to decode aac
  [07:00:04.393422] register_vorbis:385 using vorbis to decode ogg
  [07:00:04.393429] register_opus:328 using opus to decode ops
  [07:00:04.393435] register_flac:336 using flac to decode ogf,flc
  [07:00:04.393441] register_pcm:483 using pcm to decode aif,pcm
  [07:00:04.393495] register_mad:423 using mad to decode mp3
  [07:00:04.393504] decode_init:194 include codecs:  exclude codecs:
  [07:00:04.393595] discover_server:795 sending discovery
  [07:00:04.393750] discover_server:806 got response from: 10.7.120.129:3483
  [07:00:04.393773] slimproto:898 connecting to 10.7.120.129:3483
  [07:00:04.393833] slimproto:937 connected
  [07:00:04.393845] slimproto:948 local player
  [07:00:04.393851] sendHELO:148 mac: d0:50:99:af:6d:be
  [07:00:04.393860] sendHELO:150 cap: 
CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=v1.9.9-1392,ModelName=SqueezeLite,MaxSampleRate=1536000,dsf,dff,alc,aac,ogg,ops,ogf,flc,aif,pcm,mp3,loc
  [07:00:04.394271] process:528 strm
  [07:00:04.394286] process_strm:280 strm command q
  [07:00:04.394293] decode_flush:236 decode flush
  [07:00:04.394299] output_flush:439 flush output buffer
  [07:00:04.394305] sendSTAT:195 STAT: STMf
  [07:00:04.394341] process:528 strm
  [07:00:04.394349] process_strm:280 strm command q
  [07:00:04.394355] decode_flush:236 decode flush
  [07:00:04.394360] output_flush:439 flush output buffer
  [07:00:04.394366] sendSTAT:195 STAT: STMf
  [07:00:04.394392] process:528 setd
  [07:00:04.394398] sendSETDName:254 set playername: AES
  [07:00:04.394418] process:528 setd
  [07:00:04.394465] process:528 aude
  [07:00:04.394470] process_aude:422 enable spdif: 1 dac: 1
  [07:00:04.394519] process:528 audg
  [07:00:04.394523] process_audg:440 audg gainL: 3840 gainR: 3840 adjust: 1
  [07:00:04.394529] set_volume:233 setting internal gain left: 3840 right: 3840
  [07:00:04.403386] output_thread:715 XRUN
  [07:00:04.413493] output_thread:715 XRUN
  [07:00:04.423604] output_thread:715 XRUN
  [07:00:04.433750] output_thread:715 XRUN
  [07:00:04.443925] output_thread:715 XRUN
  [07:00:04.454079] output_thread:715 XRUN
  [07:00:04.464264] output_thread:715 XRUN
  [07:00:04.474451] output_thread:715 XRUN
  

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-24 Thread th2j


th2j wrote: 
> 
> I tried by mistake these buffer (500bytes + period count 4) :
> ARGS=-o plughw:0,0 -a 500:4:32:1
> 
> And Squeezelite can't manage that buffer (the sound is chopped),

I switch to Squeezelite's bin from the plugin "Local player" witch i
think is a little bit older, and the problem is gone.
I don't recommand this buffer because it is too small but i don't
understand why last squeezelite can't manage although old version can.



th2j's Profile: http://forums.slimdevices.com/member.php?userid=72679
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-23 Thread bpa


s25a wrote: 
> AES67 in general can do more than 48000 Hz. It's depending on the sink
> which is in my case limited to 48000 HZ. I guess the reason why it shows
> all options is because there are other devices (sinks) that can do much
> more.
This is true of many devices but the ALSA driver should only allow
values for what is available not what is possible.

> 
> > 
Code:

  >   > a@audioserver:~/programs$ sudo ./squeezelite -n AES -a 24 -r 
48000-48000 -d all=debug -o hw:CARD=RAVENNA
  > [16:46:57.626795] stream_init:448 init stream
  > [16:46:57.626883] stream_init:449 streambuf size: 2097152
  > .
  > .
  > .
  > [16:46:57.648134] alsa_open:422 opened device hw:CARD=RAVENNA using format: 
S32_LE sample rate: 48000 mmap: 1

> > 
> 

All OK except for sample format setting. I thought there was "-a 24"
would work as a shorthand for S24_LE but seem not as Squeezelite has
opened with S32_LE

Try the more complicated version.

Code:

squeezelite -n AES -a ::24:1 -r 48000-48000 -d all=debug -o hw:CARD=RAVENNA




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-23 Thread s25a


Hi,

AES67 in general can do more than 48000 Hz. It's depending on the sink
which is in my case limited to 48000 HZ. I guess the reason why it shows
all options is because there are other devices (sinks) that can do much
more.

I am on Debian 11. Kernel 5.10.0-12 AMD.
LMS is 8.2 and squeezelite is: v1.9.8-1294

> Starting with a simplified squeezelite command - fewer options means
> less chance for mistakes.
> Code:
> squeezelite -n AES -a 24 -r 48000-48000 -d all=debug -o hw:CARD=RAVENNA
> Try and post back output from squeezelite from very start, to first 30
> secs of trying to play a stream. Zip and attach output to post if
> necessary.


Code:

a@audioserver:~/programs$ sudo ./squeezelite -n AES -a 24 -r 48000-48000 -d 
all=debug -o hw:CARD=RAVENNA
  [16:46:57.626795] stream_init:448 init stream
  [16:46:57.626883] stream_init:449 streambuf size: 2097152
  [16:46:57.636294] output_init_alsa:940 init output
  [16:46:57.636323] output_init_alsa:980 requested alsa_buffer: 24 alsa_period: 
4 format: any mmap: 1
  [16:46:57.636333] output_init_common:350 outputbuf size: 3528000
  [16:46:57.636365] output_init_common:374 idle timeout: 0
  [16:46:57.637299] output_init_common:422 supported rates: 48000
  [16:46:57.646079] output_init_alsa:1006 memory locked
  [16:46:57.646121] output_init_alsa:1012 glibc detected using mallopt
  [16:46:57.646238] output_init_alsa:1032 set output sched fifo rt: 45
  [16:46:57.646256] decode_init:153 init decode
  [16:46:57.646340] register_dsd:908 using dsd to decode dsf,dff
  [16:46:57.646349] register_alac:555 using alac to decode alc
  [16:46:57.646357] register_faad:663 using faad to decode aac
  [16:46:57.646364] register_vorbis:380 using vorbis to decode ogg
  [16:46:57.646371] register_opus:324 using opus to decode ops
  [16:46:57.646384] register_flac:332 using flac to decode ogf,flc
  [16:46:57.646393] register_pcm:483 using pcm to decode aif,pcm
  [16:46:57.646958] register_mad:423 using mad to decode mp3
  [16:46:57.646974] decode_init:194 include codecs:  exclude codecs:
  [16:46:57.647160] discover_server:788 sending discovery
  [16:46:57.647476] discover_server:799 got response from: 10.7.120.129:3483
  [16:46:57.647524] slimproto:887 connecting to 10.7.120.129:3483
  [16:46:57.647672] output_thread:687 open output device: hw:CARD=RAVENNA
  [16:46:57.647696] alsa_open:351 opening device at: 48000
  [16:46:57.648133] slimproto:926 connected
  [16:46:57.648134] alsa_open:422 opened device hw:CARD=RAVENNA using format: 
S32_LE sample rate: 48000 mmap: 1
  [16:46:57.648171] slimproto:937 local player
  [16:46:57.648183] sendHELO:142 mac: d0:50:99:af:6d:be
  [16:46:57.648195] sendHELO:144 cap: 
CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.8-1294,ModelName=SqueezeLite,MaxSampleRate=48000,dsf,dff,alc,aac,ogg,ops,ogf,flc,aif,pcm,mp3,loc
  [16:46:57.648195] alsa_open:513 buffer: 24 period: 4 -> buffer size: 192 
period size: 48
  [16:46:57.677964] process:521 strm
  [16:46:57.677994] process_strm:274 strm command q
  [16:46:57.678004] decode_flush:236 decode flush
  [16:46:57.678014] output_flush:435 flush output buffer
  [16:46:57.678024] sendSTAT:189 STAT: STMf
  [16:46:57.678129] process:521 setd
  [16:46:57.678153] sendSETDName:248 set playername: AES
  [16:46:57.678218] process:521 setd
  [16:46:57.678235] process:521 aude
  [16:46:57.678251] process_aude:415 enable spdif: 1 dac: 1
  [16:46:57.678386] process:521 audg
  [16:46:57.678398] process_audg:433 audg gainL: 3840 gainR: 3840 adjust: 1
  [16:46:57.678409] set_volume:233 setting internal gain left: 3840 right: 3840
  [16:47:02.001713] process:521 strm
  [16:47:02.001769] process_strm:274 strm command t
  [16:47:02.001788] sendSTAT:189 STAT: STMt
  [16:47:06.003673] process:521 strm
  [16:47:06.003738] process_strm:274 strm command t
  [16:47:06.003768] sendSTAT:189 STAT: STMt
  [16:47:11.003645] process:521 strm
  [16:47:11.003700] process_strm:274 strm command t
  [16:47:11.003724] sendSTAT:189 STAT: STMt
  [16:47:16.007677] process:521 strm
  [16:47:16.007740] process_strm:274 strm command t
  [16:47:16.007767] sendSTAT:189 STAT: STMt
  [16:47:26.095897] process:521 strm
  [16:47:26.095954] process_strm:274 strm command t
  [16:47:26.095980] sendSTAT:189 STAT: STMt
  [16:47:31.000660] process:521 strm
  [16:47:31.000716] process_strm:274 strm command t
  [16:47:31.000742] sendSTAT:189 STAT: STMt
  [16:47:35.074657] process:521 strm
  [16:47:35.074704] process_strm:274 strm command t
  [16:47:35.074723] sendSTAT:189 STAT: STMt
  [16:47:38.619723] process:521 strm
  [16:47:38.619752] process_strm:274 strm command q
  [16:47:38.619765] decode_flush:236 decode flush
  [16:47:38.619772] output_flush:435 flush output buffer
  [16:47:38.619780] sendSTAT:189 STAT: STMf
  [16:47:38.627663] process:521 audg
  [16:47:38.627684] process_audg:433 audg gainL: 3840 gainR: 3840 adjust: 1
  [16:47:38.627692] set_volume:233 setting internal 

Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-23 Thread bpa


Taking your message in reverse.
s25a wrote: 
> > 
Code:

  >   > 
  > a@audioserver:~$ aplay --dump-hw-params -D hw:RAVENNA -r 48000 -c 2 -f 
S24_3LE test48.wav
  > Wiedergabe: WAVE 'test48.wav' : Signed 24 bit Little Endian in 3bytes, 
Rate: 48000 Hz, stereo
  > HW Params of device "hw:RAVENNA":
  > 
  > ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
  > FORMAT:  S16_LE S24_LE S32_LE S24_3LE DSD_U8 DSD_U16_BE DSD_U32_BE
  > SUBFORMAT:  STD
  > SAMPLE_BITS: [8 32]
  > FRAME_BITS: [8 4096]
  > CHANNELS: [1 128]
  > RATE: [44100 384000]
  > PERIOD_TIME: [125 8708)
  > PERIOD_SIZE: [48 384]
  > PERIOD_BYTES: [48 196608]
  > PERIODS: [2 1024]
  > BUFFER_TIME: [250 8916463)
  > BUFFER_SIZE: [96 393216]
  > BUFFER_BYTES: [96 25165824]
  > TICK_TIME: ALL
  > 
  > 

> > 

This shows the ALSA device for Ravenna is not reliable for some reason
(e.g. wrongly configured, wrongly built). ALSA expects the underlying
h/w driver to report the correct h/w params the device supports. This
report says Ravenna device supports all variation 44.1kHz to 384Khz, 1
to 128 channels, sample formats S16_LE S24_LE S32_LE S24_3LE DSD_U8
DSD_U16_BE DSD_U32_BE etc.  This is very wrong.

This means you cannot rely on usual ALSA defaults - all aspects of the
stream has to be defined to use.  It is also probably the reason why use
of plughw is doomed to fail.

Normally, ALSA does parameter checking and unsupported values or
combinations will be rejected with a reason. However with Ravenna
device,  ALSA cannot reject invalid setting and so squeezelite seems to
be do nothing.

Since the aplay works with 48kHz, S24_LE and 2 Chan . Then you'll need
to do the same for squeezlite.
The "-R -u vME:::28[/B]" is required when squeezelite does resampling -
to simplify this can be left to LMS.

You don't say what your LMS server or squeezelite client OS/system are -
this can affect what options are available/used (e.g. correct mmap
setting is usually critical on RPis).

Starting with a simplified squeezelite command - fewer options means
less chance for mistakes.

Code:


  squeezelite -n AES -a 24 -r 48000-48000 -d all=debug -o hw:CARD=RAVENNA
  



Try and post back output from squeezelite from very start, to first 30
secs of trying to play a stream.  Zip and attach output to post if
necessary.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-23 Thread s25a


Hi,

> 
> When squeezelite tries to use an ALSA device,. the device will report
> what sample rates and sample sizes are supported and Squeezelite reports
> that back to LMS.
> So there should be no need to specify sample rate in command line.
> Command line options can often prevent squeezelite from working by
> overriding normal operations.
> 
> Where did you see that "-R -u vME:::28 -r 48000-48000" are the proven
> correct options for the AES67/Ravenna ALSA driver ?
> 

My Audio DSP only support 48000 HZ so I assume that opening the Alsa
Device with *-r 48000-48000* should match.
As far as I understood *-R -u vME:::28* means that everything that does
not match 48000Hz will be resampled to that rate.
And as I did not get any error message from squeezelite I think that
should do it. But that is only my personal assumption - there is no
documentation that indicates that parameters. If you have any
suggestions, happy to try it out.


> 
> waht does the following command show
> 
> Code:
> aplay --dump-hw-params -D hw:RAVENNA -r 48000 -c 2 -f S24_3LE test48.wa
> 


Code:


  a@audioserver:~$ aplay --dump-hw-params -D hw:RAVENNA -r 48000 -c 2 -f 
S24_3LE test48.wav
  Wiedergabe: WAVE 'test48.wav' : Signed 24 bit Little Endian in 3bytes, Rate: 
48000 Hz, stereo
  HW Params of device "hw:RAVENNA":
  
  ACCESS:  MMAP_INTERLEAVED RW_INTERLEAVED
  FORMAT:  S16_LE S24_LE S32_LE S24_3LE DSD_U8 DSD_U16_BE DSD_U32_BE
  SUBFORMAT:  STD
  SAMPLE_BITS: [8 32]
  FRAME_BITS: [8 4096]
  CHANNELS: [1 128]
  RATE: [44100 384000]
  PERIOD_TIME: [125 8708)
  PERIOD_SIZE: [48 384]
  PERIOD_BYTES: [48 196608]
  PERIODS: [2 1024]
  BUFFER_TIME: [250 8916463)
  BUFFER_SIZE: [96 393216]
  BUFFER_BYTES: [96 25165824]
  TICK_TIME: ALL
  
  



Again , appreciate your help and support.

Thanks S



s25a's Profile: http://forums.slimdevices.com/member.php?userid=65256
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread bpa


s25a wrote: 
> With regards to your question of sample rate. AES67 is restricted to
> 48000Hzz in my case (My Audio DSP is only capable to process this rate)
> The AES67 virtual Sound-card I installed only publish the Audio Data to
> the DSP. I don't think there is a sync of capabilities between the
> devices.

When squeezelite tries to use an ALSA device,. the device will report
what sample rates and sample sizes are supported and Squeezelite reports
that back to LMS.
So there should be no need to specify sample rate in command line. 
Command line options can often prevent squeezelite from working by
overriding normal operations.

Where did you see that "-R -u vME:::28 -r 48000-48000" are the proven
correct options for the AES67/Ravenna ALSA driver ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread s25a


HI,

thank you very much. Appreciate your help :-) I will do so and ask in a
separate thread - Maybe someone has an idea.

With regards to your question of sample rate. AES67 is restricted to
48000Hzz in my case (My Audio DSP is only capable to process this rate)
The AES67 virtual Sound-card I installed only publish the Audio Data to
the DSP. I don't think there is a sync of capabilities between the
devices.

But I am pretty new to this topic and maybe I did some mistakes in
config. It's pretty complicated to be honest but the Idea of the
64channel virtual Soundcard (opensource locense is very nice) :-)

By the way ---> I can play files with aplay:


Code:


  aplay -D hw:RAVENNA -r 48000 -c 2 -f S24_3LE test48.wav
  Wiedergabe: WAVE 'test48.wav' : Signed 24 bit Little Endian in 3bytes, Rate: 
48000 Hz, stereo
  



That works.

Thanks S



s25a's Profile: http://forums.slimdevices.com/member.php?userid=65256
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread bpa


s25a wrote: 
> Hi,
> 
> thank you very much for help. I followed your recommendations and it did
> something:
> 
> Changed to:
> 
> > 
Code:

  >   > sudo ./squeezelite -R -u vME:::28 -r 48000-48000 -d all=debug -o 
hw:CARD=RAVENNA

> > 
> and now it starts with 48000HZ and no further error messages.
> However no audio and an error in my Audio DSP that says: "Compromised
> - Packet Missing"
> 
> I guess this has nothing to do with squeezelite as it plays audio on
> every soundcard expect this virtuel Ravenna card.
> 
> I guess I have to reask my question: Does someone use this virtual
> Sound Card (AES67/Ravenna) with squeezelite?
> 

I suggest ask in a separate thread or possibllity check the spreadsheet
of DAC (I don't know the URL offhand)

Error message from squeezelite are usually easily identified.

Still the basic question - why the need to restrict the sample rate
using options ?

ALSA should report the restrictions to player and then LMS should do the
resampling automatically. 
If the device is not reporting its sample rate properly - I'd be
concerned.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread s25a


Hi,

thank you very much for help. I followed your recommendations and it did
something:

Changed to:


Code:

sudo ./squeezelite -R -u vME:::28 -r 48000-48000 -d all=debug -o 
hw:CARD=RAVENNA


and now it starts with 48000HZ and no further error messages.
However no audio and an error in my Audio DSP that says: "Compromised -
Packet Missing"

I guess this has nothing to do with squeezelite as it plays audio on
every soundcard expect this virtuel Ravenna card.

I guess I have to reask my question: Does someone use this virtual Sound
Card (AES67/Ravenna) with squeezelite?

Thanks S



s25a's Profile: http://forums.slimdevices.com/member.php?userid=65256
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread Paul Webster


I think
-r n
is the maximum rate
so try
-r 48000 - 48000
to say that it is a range (and therefore has a lower bound)



Paul Webster
author of \"now playing\" plugins covering radio france (fip etc),
planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc
australia and cbc/radio-canada
and, via the extra \"radio now playing\" plugin lots more - see
https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread bpa


s25a wrote: 
> Hi,
> 
> could you please help me to start the auqeezelite player with the
> correct params. It must be opened with 48000Hz and Format S16_LE
> otherwise there will be an error with the soundcard.

Using plughw rather than hw means ALSA can do lots of software
conversion so why are you trying to override even more.

Get a log with the original error with no overriding params so the real
problem can be seen.

Code:

sudo ./squeezelite -s 10.0.0.192 -d all=debug -o hw:CARD=RAVENNA




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-22 Thread s25a


Hi,

could you please help me to start the auqeezelite player with the
correct params. It must be opened with 48000Hz and Format S16_LE
otherwise there will be an error with the soundcard.

So I started with:


Code:

sudo ./squeezelite -s 10.0.0.192 -a 80:4:16:1 -R -u vME:::28 -r 48000 -d 
all=debug -o plughw:CARD=RAVENNA



-R -u vME:::28 -r 48000   ---> I think it will resample everything to
supported rate which is 48000
-a 80:4:16:1  to start with S16_LE


However the log is:


Code:


  stream_init:448 init stream
  [10:49:36.773465] stream_init:449 streambuf size: 2097152
  [10:49:36.775181] output_init_alsa:940 init output
  [10:49:36.775206] output_init_alsa:980 requested alsa_buffer: 80 alsa_period: 
4 format: 16 mmap: 1
  [10:49:36.775214] output_init_common:350 outputbuf size: 3528000
  [10:49:36.775246] output_init_common:374 idle timeout: 0
  [10:49:36.776259] output_init_common:422 supported rates: 48000 44100 32000 
24000 22500 16000 12000 11025 8000
  [10:49:36.777893] output_init_alsa:1006 memory locked
  [10:49:36.777923] output_init_alsa:1012 glibc detected using mallopt
  [10:49:36.778008] output_init_alsa:1032 set output sched fifo rt: 45
  [10:49:36.778022] decode_init:153 init decode
  [10:49:36.778061] register_dsd:908 using dsd to decode dsf,dff
  [10:49:36.778068] register_alac:555 using alac to decode alc
  [10:49:36.778073] register_faad:663 using faad to decode aac
  [10:49:36.778079] register_vorbis:380 using vorbis to decode ogg
  [10:49:36.778085] register_opus:324 using opus to decode ops
  [10:49:36.778090] register_flac:332 using flac to decode ogf,flc
  [10:49:36.778096] register_pcm:483 using pcm to decode aif,pcm
  [10:49:36.778105] register_mad:423 using mad to decode mp3
  [10:49:36.778110] decode_init:194 include codecs:  exclude codecs:
  [10:49:36.778680] resample_init:362 resampling sync recipe: 0x36, flags: 
0x00, scale: 0.89, precision: 28.0, passband_end: 0.0, stopband_begin: 
0.0, phase_response: -1.0
  [10:49:36.778718] slimproto:887 connecting to 10.0.0.192:3483
  [10:49:36.778774] output_thread:687 open output device: plughw:CARD=RAVENNA
  [10:49:36.778783] alsa_open:351 opening device at: 44100
  [10:49:36.779107] alsa_open:422 opened device plughw:CARD=RAVENNA using 
format: S16_LE sample rate: 44100 mmap: 1
  [10:49:36.779167] alsa_open:513 buffer: 80 period: 4 -> buffer size: 192 
period size: 48
  [10:49:36.779313] slimproto:926 connected
  
  




So it opens with 44100 and not 48000. Any ideas?

alsa_open:422 opened device plughw:CARD=RAVENNA using format: *S16_LE*
sample rate: *44100* mmap: 1



s25a's Profile: http://forums.slimdevices.com/member.php?userid=65256
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-21 Thread bpa


th2j wrote: 
> For me it is a proof that Squeezelite is doing something different than
> just transmit to alsa.

Squeezelite manages volume - (i.e. LMS volume control of player & also
Gain tags)  that is all - look at the source code. aplay does not do
anything with volume. So I think difference in vilume is one issue.

Since you are using a "plughw" device and not a "hw" device - so the
settings between aplay and Squeezelite are not directly comparable.  Too
small a buffer setting will cause choppiness - this is bad setting by
user for chosen stream - not squeezelite fault.
Squeezlite with convert to 24 bit to enable volume control with minimal
loss of quality whereas aplay will not do conversion - so buffer sizes
have to be different.

plugw devices allow ALSA do so all sort of s/w conversion (e.g. bit rate
resampling)  - use alsa-capabiities to see the difference between a
plughw:0,0 device and the hw:0,0 device.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-20 Thread Julf


th2j wrote: 
> I used squeezelite for a long time with LMS, and i am looking to the
> best audio quality

Would the "Audiophile" subforum be more appropriate?



"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953

Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-20 Thread Julf


th2j wrote: 
> Recently i compared Squeezelite with aplay and i found that aplay sound
> more natural and relaxed.

How did you compare? "Natural and relaxed" refers to human mind and
perception, not anything objectively verifiable or related to
electronics or acoustics.

> I would like to know why there is a difference in sound.

I would like to first have some sort of objective verification that
there is an actual difference in sound, not just perception.



"To try to judge the real from the false will always be hard. In this
fast-growing art of 'high fidelity' the quackery will bear a solid gilt
edge that will fool many people" - Paul W Klipsch, 1953

Julf's Profile: http://forums.slimdevices.com/member.php?userid=42050
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-18 Thread th2j


I used squeezelite for a long time with LMS, and i am looking to the
best audio quality,

Recently i compared Squeezelite with aplay and i found that aplay sound
more natural and relaxed.

Squeezelite is launched with logitech media server and with argument :
ARGS=-o plughw:0,0
Aplay is launced with the command :
flac -c -d test.flac | aplay -D plughw:0,0

If you want to use the same buffer (200ms + period count 4) :
ARGS=-o plughw:0,0 -a 200:4:32:1
flac -c -d test.flac | aplay -D plughw:0,0 --B 20 -F 5

You can check the buffer with :
cat /proc/asound/card0/pcm0p/sub0/hw_params

I would like to know why there is a difference in sound.
I thought Squeezelite was neutral and just transmit to alsa but i think
it is not the case.


I tried by mistake these buffer (500bytes + period count 4) :
ARGS=-o plughw:0,0 -a 500:4:32:1
flac -c -d test.flac | aplay -D plughw:0,0 --buffer-size=500
--period-size=125

And Squeezelite can't manage that buffer (the sound is chopped), whereas
aplay is ok.
For me it is a proof that Squeezelite is doing something different than
just transmit to alsa.



th2j's Profile: http://forums.slimdevices.com/member.php?userid=72679
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-04 Thread Man in a van


Francy07 wrote: 
> Hello Ronnie,
> do not worry. I used the command
> _sudo_systemctl_enable_--now_squeezelite_, taken from the link
> https://linuxconfig.org/how-to-start...n-ubuntu-20-04 you gave me, and
> the service works perfectly on reboot .
> Best regards.
> 
> 
> Vincenzo

Good to know :)

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-04 Thread Francy07


Man in a van wrote: 
> @Vincenzo 
> 
> I have to apologise for my somewhat remiss belief that Squeezelite
> should autostart in Ubuntu. Well of course it does, but fails (exits)
> because LMS starts after Squeezelite :confused:
> 
> Today I looked at my Linux Mint istallation and decided to update to the
> latest version (my current one is going EOL in March)
> 
> I performed the upgrade and installed LMS and Squeezelite.
> 
> Then I found I had the same problem as yourself (I must have either
> solved this before or got confused with an Ubuntu install I tried a
> couple of years ago)
> 
> Anyway, I will have "humble pie" for tea 
> 
> 37392
> 
> I did some searching on the internet and could not find a way to reolve
> the startup situation, maybe delaying LMS, or setting a "wait for
> network" command is the way, but it takes a lot of time to find the
> correct method and I'm an old dog and it is only a backup device I want
> to keep running.
> 
> 
> I remembered something I had configured for a poster on another forum,
> and here it is.:)
> 
> It works on my Linux Mint and should on your Ubuntu (if you care to
> try)
> 
> SSH into Ubuntu
> 
> type
> 
> > 
Code:

  >   > sudo crontab -e

> > 
> 
> 
> append this line to the bottom of the file
> 
> > 
Code:

  >   > @reboot sleep 20 && sudo /usr/local/bin/restart.sh

> > 
> 
> 
> Save and exit with ctrl + x, followed by y when prompted to save, and
> then Enter
> 
> then make this file
> 
> type
> 
> > 
Code:

  >   > sudo nano /usr/local/bin/restart.sh

> > 
> 
> 
> enter text
> 
> > 
Code:

  >   > #!/bin/bash
  > 
  > sudo /etc/init.d/squeezelite restart

> > 
> 
> 
> Save and exit with ctrl + x, followed by y when prompted to save, and
> then enter
> 
> make the file executable
> 
> > 
Code:

  >   > sudo chmod a+x /usr/local/bin/restart.sh

> > 
> 
> Reboot with
> 
> > 
Code:

  >   > sudo reboot

> > 
> 
> The "sleep 20" in the crontab boot line is the number of seconds to
> wait before actioning the command, if you wish to try a shorter time,
> then just adjust the number :)
> 
> ronnie




Hello Ronnie,
do not worry. I used the command
_sudo_systemctl_enable_--now_squeezelite_, taken from the link
https://linuxconfig.org/how-to-start...n-ubuntu-20-04 you gave me, and
the service works perfectly on reboot .
Best regards.


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-04 Thread Man in a van


Francy07 wrote: 
> Ok, as always very nice and helpful.
> Thanks for all!!!
> 
> Vincenzo

@Vincenzo 

I have to apologise for my somewhat remiss belief that Squeezelite
should autostart in Ubuntu. Well of course it does, but fails (exits)
because LMS starts after Squeezelite :confused:

Today I looked at my Linux Mint istallation and decided to update to the
latest version (my current one is going EOL in March)

I performed the upgrade and installed LMS and Squeezelite.

Then I found I had the same problem as yourself (I must have either
solved this before or got confused with an Ubuntu install I tried a
couple of years ago)

Anyway, I will have "humble pie" for tea 

37392

I did some searching on the internet and could not find a way to reolve
the startup situation, maybe delaying LMS, or setting a "wait for
network" command is the way, but it takes a lot of time to find the
correct method and I'm an old dog and it is only a backup device I want
to keep running.


I remembered something I had configured for a poster on another forum,
and here it is.:)

It works on my Linux Mint and should on your Ubuntu (if you care to try)

SSH into Ubuntu

type


Code:

sudo crontab -e




append this line to the bottom of the file


Code:

@reboot sleep 20 && sudo /usr/local/bin/restart.sh




Save and exit with ctrl + x, followed by y when prompted to save, and
then Enter

then make this file

type


Code:

sudo nano /usr/local/bin/restart.sh




enter text


Code:

#!/bin/bash
  
  sudo /etc/init.d/squeezelite restart




Save and exit with ctrl + x, followed by y when prompted to save, and
then enter

make the file executable


Code:

sudo chmod a+x /usr/local/bin/restart.sh



Reboot with


Code:

sudo reboot



The "sleep 20" in the crontab boot line is the number of seconds to wait
before actioning the command, if you wish to try a shorter time, then
just adjust the number :)

ronnie


+---+
|Filename: facepalm.jpg |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37392|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Francy07


Man in a van wrote: 
> Does this help ?
> 
> https://linuxconfig.org/how-to-start-service-on-boot-on-ubuntu-20-04
> 
> or this, I think this is what I meant
> 
> https://www.thegeekstuff.com/2009/07/ubuntu-open-applications-automatically-during-system-startup/
> 
> But it should not be necessary, I would think :(
> 
> ronnie


Ok, as always very nice and helpful.
Thanks for all!!!



Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Man in a van


Does this help ?

https://linuxconfig.org/how-to-start-service-on-boot-on-ubuntu-20-04



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Man in a van


Francy07 wrote: 
> Everything is ok now!!! One last question, since I have to restart
> Squeezelite at every start. How can it be made available automatically
> at each reboot? Is the command _systemctl_enable_squeezelite__okay?
> 
> Vincenzo

As I have suggested before, if squeezelite is installed either by the
package manager or, as in your case sudo apt install squeezelite, it
should , by default start when you power up the computer.

Sorry, I don't know Ubuntu, perhaps someone else can help with that.

My Linux Mint is just a back-up, I only start it every few months to
update. Squeezelite always starts.

ronnie

I seem to remember that the desktop version has a sort of start up
folder that one can install programs into. That's the best I can do do,
sorry.



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Francy07


Man in a van wrote: 
> I use this for my Linux Mint, so it should be fine, it's the same basic
> process, just a different link :)
> > 
Code:

  >   > 
  > sudo /etc/init.d/squeezelite stop
  > wget -O squeezelite.tgz 
https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-x86_64.tar.gz
  > sudo tar -C /usr/bin -zxvf squeezelite.tgz
  > sudo chmod a+x /usr/bin/squeezelite
  > sudo /etc/init.d/squeezelite start

> > 
> 
> ronnie



Everything is ok now!!! One last question, since I have to restart
Squeezelite at every start. How can it be made available automatically
at each reboot? Is the command _systemctl_enable_squeezelite__okay?

Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Man in a van


I use this for my Linux Mint, so it should be fine, it's the same basic
process, just a different link :)

Code:


  sudo /etc/init.d/squeezelite stop
  wget -O squeezelite.tgz 
https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-x86_64.tar.gz
  sudo tar -C /usr/bin -zxvf squeezelite.tgz
  sudo chmod a+x /usr/bin/squeezelite
  sudo /etc/init.d/squeezelite start



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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Francy07


Man in a van wrote: 
> Vincenzo  
> 
> Is it Ubuntu OS and is it 32 or 64 bit ?
> 
> 
> ronnie



Ubuntu 20.04. lts 64 bit.


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Man in a van


Vincenzo

Is it Ubuntu OS and is it 32 or 64 bit ?


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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Francy07


Man in a van wrote: 
> Perhaps try this to update Squeezelite;
> 
> Open a terminal and SSH into the pi, paste the following lines , one at
> a time, and press Enter on your keyboard when you have pasted the line
> 
> > 
Code:

  >   > sudo /etc/init.d/squeezelite stop
  > 
  > wget -O squeezelite.tgz 
https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-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

> > 
> 
> a reboot of the pi might also help :)
> 
> > 
Code:

  >   > sudo reboot

> > 
> 
> I hope that helps, I know nothing about the Mojo dac, sorry
> 
> ronnie





Sorry but the installation is not on armhf but it is all on one pc,
Intel I3. Can you give me another link?


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Man in a van


Francy07 wrote: 
> Hello Ronnie,
> i ask you if you know how to help me. I connected to the PC with Lms and
> Squeezelite a Dac Chord Mojo 32 bit (sample rate from 44.100 to 768.000
> hz) with which I can only play the files of 44.100 and 96.000 hz. With
> 192,000 I have no sound.
> Since Squeezelite is supposed to play up to 384,000 I tried to give the
> command _squeezelite_-_r_384000_, but the terminal freezes and I still
> don't have the sound.
> Also the terminal freezes even if I want to set the bits of the dac with
> _squeezelite_-a_32._
> Am I wrong in the settings? Can the changes be made and made permanent?
> Best regards.
> 
> 
> 
> Vincenzo

Perhaps try this to update Squeezelite;

Open a terminal and SSH into the pi, paste the following lines , one at
a time, and press Enter on your keyboard when you have pasted the line


Code:

sudo /etc/init.d/squeezelite stop
  
  wget -O squeezelite.tgz 
https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1392-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



a reboot of the pi might also help :)


Code:

sudo reboot



I hope that helps, I know nothing about the Mojo dac, sorry

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-03 Thread Francy07


Man in a van wrote: 
> Hi Vincenzo   
> 
> Glad everything is now working :)
> 
> I live in England, my Mother was from Ireland, so I always support their
> Rugby team. :)
> 
> I do admire the spirit of the Italian side, I had an Italian Auntie, and
> in my youth I sometimes used to hitch hike in Italy. :)
> 
> ronnie




Hello Ronnie,
i ask you if you know how to help me. I connected to the PC with Lms and
Squeezelite a Dac Chord Mojo 32 bit (sample rate from 44.100 to 768.000
hz) with which I can only play the files of 44.100 and 96.000 hz. With
192,000 I have no sound.
Since Squeezelite is supposed to play up to 384,000 I tried to give the
command _squeezelite_-_r_384000_, but the terminal freezes and I still
don't have the sound.
Also the terminal freezes even if I want to set the bits of the dac with
_squeezelite_-a_32._
Am I wrong in the settings? Can the changes be made and made permanent?
Best regards.



Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-01 Thread Man in a van


Hi Vincenzo 

Glad everything is now working :)

I live in England, my Mother was from Ireland, so I always support their
Rugby team. :)

I do admire the spirit of the Italian side, I had an Italian Auntie, and
in my youth I sometimes used to hitch hike in Italy. :)

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-03-01 Thread Francy07


Man in a van wrote: 
> Thanks Vincenzo   
> 
> I think you should update your LMS to v 8.2.1
> 
> https://downloads.slimdevices.com/nightly/index.php?ver=8.2
> 
> If you want to update your squeezelite to the latest version from Ralphy
> then I can paste instructions.
> 
> It will be later though, I'm now going to watch Ireland v Italy rugby
> match on the telly.
> 
> A beer and a curry await me (after i put the curry int the microwave :)
> )
> 
> Do you live in Italy ?
> 
> ronnie



Yes i live in Italy. You in Ireland? If so, congratulations on Ireland's
victory over Italy in rugby. You are too strong 
Anyway thanks for everything and good luck !!!
Regards.



Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Man in a van


Thanks Vincenzo 

I think you should update your LMS to v 8.2.1

https://downloads.slimdevices.com/nightly/index.php?ver=8.2

If you want to update your squeezelite to the latest version from Ralphy
then I can paste instructions.

It will be later though, I'm now going to watch Ireland v Italy rugby
match on the telly.

A beer and a curry await me (after i put the curry int the microwave :)
)

Do you live in Italy ?

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Francy07


Man in a van wrote: 
> open the squeezelite settings
> 
> > 
Code:

  >   > sudo nano /etc/default/squeezelite

> > 
> 
> 
> delete the # at the start of the significant lines
> 
> 
> 
> 
> 
> close and save
> 
> Ctl+X   Y  Enter
> 
> > 
Code:

  >   > sudo /etc/init.d/squeezelite restart

> > 
> 
> 
> ronnie





Ok, everything works perfectly. Thank you very much!!!
Best regards.


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Man in a van


Francy07 wrote: 
> What should I do to uncomment?
> 
> 
> Vincenzo

open the squeezelite settings


Code:

sudo nano /etc/default/squeezelite




delete the # at the start of the significant lines


> 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="hw:CARD=DragonFly,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"


close and save

Ctl+X   Y  enter


Code:

sudo /etc/init.d/squeezelite restart




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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Francy07


Man in a van wrote: 
> It's so simple I forgot to do it in my previous post 
> 
> 37355



What should I do to uncomment?


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Man in a van


It's so simple I forgot to do it in my previous post 

37355


+---+
|Filename: facepalm.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37355|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Man in a van


You still have to delete (uncomment the # sign) in squeezelite settings



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Francy07


Man in a van wrote: 
> Hi Vincenzo
> 
> Thanks :)
> 
> I see that you need to uncomment (remove the hash tag) from the
> configuration, maybe also change the output setting
> 
> please try; 
> 
> replace the output in the settings with
> 
> 
> 
> 
> It should look like this
> 
> > 
Code:

  >   > 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="hw: CARD = DragonFly, 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"

> > 
> 
> 
> Save and exit (Ctl+x   Y  Enter )
> 
> then 
> 
> > 
Code:

  >   > sudo /etc/init.d/squeezelite restart

> > 
> 
> you should see a message about using system control.
> 
> ronnie
> 
> Do you only have one version of LMS  ?
> 
> Is it on the same computer you use for squeezelite playback ?





With the following setting I have no sound:

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="hw:CARD=DragonFly,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"


I have only one version of LMS. Squeezelite is on the same computer.
Best regards.

Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Man in a van


Hi Vincenzo

Thanks :)

I see that you need to uncomment (remove the hash tag) from the
configuration, maybe also change the output setting

please try; 

replace the output in the settings with

> hw: CARD = DragonFly, DEV = 0


It should look like this


Code:

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="hw: CARD = DragonFly, 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"




Save and exit (Ctl+x   Y  Enter )

then 


Code:

sudo /etc/init.d/squeezelite restart



you should see a message about using system control.

ronnie

Do you only have one version of LMS  ?

Is it on the same computer you use for squeezelite playback ?



Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-27 Thread Francy07


Man in a van wrote: 
> That should be good :)
> 
> Ciao Vincenco
> 
> Would you please post the following information of your install, don't
> show the Mac Address: this is mine (I have some updating to do
> :rolleyes:)
> 
> 
> 
> Logitech Media Server Status
> Logitech Media Server Version: 8.2.1 - 1639114554 @ Fri 10 Dec 2021
> 08:11:22 AM CET
> Hostname: shuttle
> Server IP Address: 192.168.1.116
> Server HTTP Port Number: 9000
> Operating system: Debian - EN - utf8
> Platform Architecture: x86_64-linux
> Perl Version: 5.28.1 - x86_64-linux-gnu-thread-multi
> Audio::Scan: 1.02
> IO::Socket::SSL: 2.060
> Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
> Total Players Recognized: 1
> 
> 
> shuttle
> Player Model: SqueezeLite
> Player Type: squeezelite
> Firmware: v1.9.9-1392
> Player IP Address: 127.0.0.1
> Player MAC Address: 
> 
> and from 
> 
> > 
Code:

  >   > sudo nano /etc/default/squeezelite

> > 
> 
> 37351
> 
> thanks
> 
> ronnie
> 
> (there may be more questions :))





Logitech Media Server Versione: 8.2.0 - 1627922070 @ Tue Aug 3 11:37:35
CEST 2021
Nome host: vincenzo-imedia-S3800
Indirizzo IP del server: 192.168.1.231
Porta HTTP server: 9000
Sistema operativo: Debian - IT - utf8
Architettura piattaforma: x86_64-linux
Versione Perl: 5.30.0 - x86_64-linux-gnu-thread-multi
Audio::Scan: 1.02
IO::Socket::SSL: 2.067
Versione database: DBD::SQLite 1.58 (sqlite 3.22.0)
Totale lettori riconosciuti: 1



Modello del lettore: SqueezeLite
Tipo lettore: squeezelite
Firmware: v1.8
Indirizzo IP del lettore: 192.168.1.231




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="-o sysdefault:CARD=v10"

# 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=""

Thanks.
Best Regards.



Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Man in a van


RobbH wrote: 
> Thanks for the correction! I will correct my previous post to reflect
> it. So much for working from obviously faulty memory, instead of
> actually looking things up.
> 
> I am very aware that most intelligent people prefer to run squeezelite
> as a service, so using the -z (not -d!) option is to be avoided, as well
> as pointless. I still start it separately, daemonized. I thought that
> might be a useful way for Francy07 to try different options right now.
> But I was hoping someone would give him good directions for setting it
> up as a service. Actually, I was hoping you would do that.

No need to apologise :)

I live with a faulty memory (but slightly, just, more hair) 

37352

and don't qualify as intelligent :rolleyes: (if you see my post, you'll
understand:p) 


ronnie


+---+
|Filename: facepalm.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37352|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Man in a van


Francy07 wrote: 
> I installed with apt install squeezelite. Could I do it differently?
> How, thanks?
> 
> Vincenzo

That should be good :)

Ciao Vincenco

Would you please post the following information of your install, don't
show the Mac Address: this is mine (I have some updating to do
:rolleyes:)



Logitech Media Server Status
Logitech Media Server Version: 8.2.1 - 1639114554 @ Fri 10 Dec 2021
08:11:22 AM CET
Hostname: shuttle
Server IP Address: 192.168.1.116
Server HTTP Port Number: 9000
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Perl Version: 5.28.1 - x86_64-linux-gnu-thread-multi
Audio::Scan: 1.02
IO::Socket::SSL: 2.060
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
Total Players Recognized: 1


shuttle
Player Model: SqueezeLite
Player Type: squeezelite
Firmware: v1.9.9-1392
Player IP Address: 127.0.0.1
Player MAC Address: 

and from 


Code:

sudo nano /etc/default/squeezelite



37351

thanks

ronnie

(there may be more questions :))


+---+
|Filename: shuttl 1.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37351|
+---+


Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Francy07


RobbH wrote: 
> Sorry, Vincenzo, my information turned out to be misinformation. But I'm
> sure Ronnie will help you get things right.


Ok, thanks anyway !!!


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread RobbH


Francy07 wrote: 
> Thank you so much for the information and yes, I would be interested.
> 
> 
> Vincenzo

Sorry, Vincenzo, my information turned out to be misinformation. But I'm
sure Ronnie will help you get things right.



LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread RobbH


Man in a van wrote: 
> -d is to logging
> -z daemonises
> 
> https://ralph-irving.github.io/squeezelite.html
> 
> Depending upon how one install squeezelite -z is not normally required.
> 
> I have a Linux Mint install of squeezelite and it starts when the
> computer boots up.
> 
> ronnie

Thanks for the correction! I will correct my previous post to reflect
it. So much for working from obviously faulty memory, instead of
actually looking things up.

I am very aware that most intelligent people prefer to run squeezelite
as a service, so using the -z (not -d!) option is to be avoided, as well
as pointless. I still start it separately, daemonized. I thought that
might be a useful way for Francy07 to try different options right now.
But I was hoping someone would give him good directions for setting it
up as a service. Actually, I was hoping you would do that.



LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Francy07


Man in a van wrote: 
> -d is to logging
> -z daemonises
> 
> https://ralph-irving.github.io/squeezelite.html
> 
> Depending upon how one install squeezelite -z is not normally required.
> 
> I have a Linux Mint install of squeezelite and it starts when the
> computer boots up.
> 
> ronnie


I installed with apt install squeezelite. Could I do it differently?
How, thanks?

Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Man in a van


RobbH wrote: 
> I think I understand what you are saying. The terminal does not actually
> freeze, it is busy executing squeezelite. Add the -d option to your
> command. To use your example:  > 
Code:

  >   > squeezelite -o sysdefault:CARD=DragonFly -d

> > 
> 
> That will "daemonize" squeezelite, so that it runs in the background
> and continues to run after you close the terminal window.
> 
> However, squeezelite does not save that setting, you will have to use
> the same command every time you start squeezelite.
> 
> Your list of outputs shows includes spaces in the names. Is that
> correct? They usually do not include any white space, like this:
> 
> > 
Code:

  >   >   iec958:CARD=DragonFly,DEV=0

> > 

-d is to logging
-z daemonises

https://ralph-irving.github.io/squeezelite.html

Depending upon how one install squeezelite -z is not normally required.

I have a Linux Mint install of squeezelite and it starts when the
computer boots up.

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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Man in a van


Francy07 wrote: 
> Hello everybody,
> I ask if you can help me. On Ubuntu 20.04.03 Lts I have installed
> Logitech Media Server and Squeezelite. I can't select the output for
> Squeezlite (Audioquest Dragonfly Black 24 bit-96Khz). If I use the
> command "squeezelite -o  (for example squeezelite -o
> sysdefault: CARD = DragonFly) LMS is played but the Linux terminal
> freezes and therefore does not save the setting. If I then close the LMS
> terminal it is not reproduced How can I save the setting of the output,
> thanks?
> I attach the list of available Dragonfly outputs:
> 
> sysdefault: CARD = DragonFly - AudioQuest DragonFly, USB Audio -
> Default audio device
> front: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Front speakers
> surround21: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 2.1 surround output for front speakers and subwoofer
> surround40: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 4.0 surround output to front and rear speakers
> surround41: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 4.1 surround output for front, rear and subwoofer speakers
> surround50: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 5.0 surround output to front, center and rear speakers
> surround51: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 5.1 surround output for front, center, rear and subwoofer
> speakers
> surround71: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 7.1 surround output to front, center, side, rear and Woofer
> speakers
> iec958: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> IEC958 digital audio output (S / PDIF)
> dmix: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Direct sample mixing device
> dsnoop: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Direct Sample Snooping Device
> hw: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Direct hardware device without conversions
> plughw: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Hardware device with all software conversions
> usbstream: CARD = DragonFly - AudioQuest DragonFly - USB stream output
> 
> 
> 
> Vincenzo, Italy

Please say how you installed Squeezelite


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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Francy07


RobbH wrote: 
> One more note: after you find the squeezelite settings that work best
> for you, you will probably want to run squeezelite as a service. That
> way, it can start automatically when the computer boots, with your
> chosen settings. You will not have to start it manually.
> 
> I don't have the directions for doing that at hand, but if you are
> interested, I am certain someone can provide them.



Thank you so much for the information and yes, I would be interested.


Vincenzo



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread RobbH


Francy07 wrote: 
> 

One more note: after you find the squeezelite settings that work best
for you, you will probably want to run squeezelite as a service. That
way, it can start automatically when the computer boots, with your
chosen settings. You will not have to start it manually.

I don't have the directions for doing that at hand, but if you are
interested, I am certain someone can provide them.



LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread RobbH


Francy07 wrote: 
> Hello everybody,
> I ask if you can help me. On Ubuntu 20.04.03 Lts I have installed
> Logitech Media Server and Squeezelite. I can't select the output for
> Squeezlite (Audioquest Dragonfly Black 24 bit-96Khz). If I use the
> command "squeezelite -o  (for example squeezelite -o
> sysdefault: CARD = DragonFly) LMS is played but the Linux terminal
> freezes and therefore does not save the setting. If I then close the LMS
> terminal it is not reproduced How can I save the setting of the output,
> thanks?
> I attach the list of available Dragonfly outputs:
> 
> sysdefault: CARD = DragonFly - AudioQuest DragonFly, USB Audio -
> Default audio device
> front: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Front speakers
> surround21: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 2.1 surround output for front speakers and subwoofer
> surround40: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 4.0 surround output to front and rear speakers
> surround41: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 4.1 surround output for front, rear and subwoofer speakers
> surround50: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 5.0 surround output to front, center and rear speakers
> surround51: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 5.1 surround output for front, center, rear and subwoofer
> speakers
> surround71: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
> Audio - 7.1 surround output to front, center, side, rear and Woofer
> speakers
> iec958: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> IEC958 digital audio output (S / PDIF)
> dmix: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Direct sample mixing device
> dsnoop: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Direct Sample Snooping Device
> hw: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Direct hardware device without conversions
> plughw: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
> Hardware device with all software conversions
> usbstream: CARD = DragonFly - AudioQuest DragonFly - USB stream
> output
> 
> 
> 
> Vincenzo, Italy

I think I understand what you are saying. The terminal does not actually
freeze, it is busy executing squeezelite. Add the -d option to your
command. To use your example:  
Code:

squeezelite -o sysdefault:CARD=DragonFly -d



That will "daemonize" squeezelite, so that it runs in the background and
continues to run after you close the terminal window.

However, squeezelite does not save that setting, you will have to use
the same command every time you start squeezelite.

Your list of outputs shows includes spaces in the names. Is that
correct? They usually do not include any white space, like this:


Code:

  iec958:CARD=DragonFly,DEV=0




LMS 8 nightly running on Raspberry Pi OS. Mostly virtual players,
occasionally with SB Radio, Boom or Classic.

RobbH's Profile: http://forums.slimdevices.com/member.php?userid=67008
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2022-02-26 Thread Francy07


Hello everybody,
I ask if you can help me. On Ubuntu 20.04.03 Lts I have installed
Logitech Media Server and Squeezelite. I can't select the output for
Squeezlite (Audioquest Dragonfly Black 24 bit-96Khz). If I use the
command "squeezelite -o  (for example squeezelite -o
sysdefault: CARD = DragonFly) LMS is played but the Linux terminal
freezes and therefore does not save the setting. If I then close the LMS
terminal it is not reproduced How can I save the setting of the output,
thanks?
I attach the list of available Dragonfly outputs:

sysdefault: CARD = DragonFly - AudioQuest DragonFly, USB Audio -
Default audio device
front: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
Front speakers
surround21: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
Audio - 2.1 surround output for front speakers and subwoofer
surround40: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
Audio - 4.0 surround output to front and rear speakers
surround41: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
Audio - 4.1 surround output for front, rear and subwoofer speakers
surround50: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
Audio - 5.0 surround output to front, center and rear speakers
surround51: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
Audio - 5.1 surround output for front, center, rear and subwoofer
speakers
surround71: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB
Audio - 7.1 surround output to front, center, side, rear and Woofer
speakers
iec958: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
IEC958 digital audio output (S / PDIF)
dmix: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
Direct sample mixing device
dsnoop: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
Direct Sample Snooping Device
hw: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
Direct hardware device without conversions
plughw: CARD = DragonFly, DEV = 0 - AudioQuest DragonFly, USB Audio -
Hardware device with all software conversions
usbstream: CARD = DragonFly - AudioQuest DragonFly - USB stream
output



Vincenzo, Italy



Francy07's Profile: http://forums.slimdevices.com/member.php?userid=72617
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-12-16 Thread MartinS0815

bpa wrote: 
> A good utility to help with managing pulseaudio and how it is configured
> is pavucontrol. Check your output device is there an available. 

Pavucontrol returns that:


Code:

Unable to init server: Verbindung ist gescheitert: Verbindungsaufbau 
abgelehnt




> There is a squeezlite-pulse especially for Pulseaudio. Have you tried it
> ? 
i do not see any pulse-version suitable for raspberry (armhf).

> 
> If the device is not to be shared using pulseaudio (i.e. use pavucontrol
> so that pulseaudio does not use the device) - then you can use
> squeezelite with hw or plughw specific alsa device

? confused? I do not understand that. My goal is, to have the raspbberry
playing music from the LMS as well as to respond to Alexa (or google).
For that I need any possibility that Squeezelite is not blocking the
audio port, to achieve that I am bound to Pulseaudio, at least thatßs
what I understood.

Regards



MartinS0815's Profile: http://forums.slimdevices.com/member.php?userid=64723
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-12-15 Thread bpa

MartinS0815 wrote: 
> Hi, i´m trying to get Squeezelite running on a pulseaudio system, but it
> fails.
> 
> PA is running, squeezelite on direct HW was also running.
> But if I use -o pulse, it does not start
> 
A good utility to help with managing pulseaudio and how it is configured
is pavucontrol. Check your output device is there an available.

> 
> > 
Code:

  >   > pi@pidisplay:~ $ sudo squeezelite-armv6hf
  > [22:41:34.859182] test_open:281 playback open error: Connection refused
  > [22:41:34.859581] output_init_common:401 unable to open output device: 
default

> > 
> 

There is a squeezlite-pulse especially for Pulseaudio. Have you tried it
? https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-12-14 Thread MartinS0815

Hi, i´m trying to get Squeezelite running on a pulseaudio system, but it
fails.

PA is running, squeezelite on direct HW was also running.
But if I use -o pulse, it does not start


Code:

pi@pidisplay:~ $ sudo squeezelite-armv6hf
  [22:41:34.859182] test_open:281 playback open error: Connection refused
  [22:41:34.859581] output_init_common:401 unable to open output device: default



Here´s teh sound output:
http://alsa-project.org/db/?f=95b59e648ecdbb30df8667f8fe1eab1484ca4b95

I assume i´m missing a simple thing, but do not know which:
Done that too:

Code:

sudo adduser pi pulse-access
  sudo adduser pulse audio
  



Any clue, where to look for? Thanks in advance



MartinS0815's Profile: http://forums.slimdevices.com/member.php?userid=64723
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread lordvader


ralphy wrote: 
> I'll add the missing 1411200 and 1536000 sample rates for the next
> squeezelite release.

Legend! Thanks :)



lordvader's Profile: http://forums.slimdevices.com/member.php?userid=68712
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread ralphy


I'll add the missing 1411200 and 1536000 sample rates for the next
squeezelite release.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=LL5P6365KQEXN=CA_name=Squeezebox%20client%20builds_code=USD=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=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread lordvader


bpa wrote: 
> From a quick look at the code (I only know a little bit about it)  -
> squeezelite has a max rate of 768000 (I'm not sure if this is updated by
> ALSA returned values) and I think squeezelite compares the max rate
> against the stream sample rate/32 (i.e. 45158400/32 =1411200 )
> 
> As a test I suggest adding the following squeezelite command line option
> "-r 44100-1411200" or maybe "-r
> 44100,48000,88200,96000,176400,192000,352800,384000,705600,768000,1411200"

Success!
I also needed to increase the alsa buffer to 160 from 80, so my command
line looks like:

Code:

/usr/local/bin/squeezelite -n "Loungeroom" -o hw:CARD=Audio,DEV=0 -a 
160:4::1: -r 44100-1411200 -d all=debug -f /var/log/pcp_squeezelite.log -D 
3:u32be -v




Here's what we see when playing DSD1024:


Code:

[19:28:08.401998] sendRESP:226 RESP
  [19:28:08.478601] _read_header:192 id: DSD  len: 28 consume: 28
  [19:28:08.478666] _read_header:159 DSF version: 1 format: 0
  [19:28:08.478688] _read_header:169 channels: 2
  [19:28:08.478706] _read_header:170 sample rate: 45158400
  [19:28:08.478724] _read_header:171 lsb first: 1
  [19:28:08.478743] _read_header:172 sample bytes: 4914292240
  [19:28:08.478762] _read_header:173 block size: 4096
  [19:28:08.478780] _read_header:192 id: fmt  len: 52 consume: 52
  [19:28:08.478799] _read_header:179 found dsd len: 9828589580
  [19:28:08.478818] dsd_decode:768 setting track_start
  [19:28:08.478837] dsd_decode:821 DSD1024 stream, format: DSD_U32_BE, rate: 
1411200Hz
  
  [19:28:08.498446] _output_frames:65 start buffer frames: 261120
  [19:28:08.498509] _output_frames:153 track start sample rate: 1411200 
replay_gain: 0
  [19:28:08.498563] sendSTAT:195 STAT: STMs
  [19:28:08.508551] output_thread:682 open output device: hw:CARD=Audio,DEV=0
  [19:28:08.520696] alsa_open:351 opening device at: 1411200
  [19:28:08.521482] alsa_open:422 opened device hw:CARD=Audio,DEV=0 using 
format: DSD_U32_BE sample rate: 1411200 mmap: 1
  [19:28:08.521573] alsa_open:513 buffer: 160 period: 4 -> buffer size: 131072 
period size: 32768




lordvader's Profile: http://forums.slimdevices.com/member.php?userid=68712
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread bpa


lordvader wrote: 
> > 
Code:

  >   > Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 
705600, 768000, 1411200, 1536000
  > 

> > 

>From a quick look at the code (I only know a little bit about it)  -
squeezelite has a max rate of 768000 (I'm not sure if this is updated by
ALSA returned values) and I think squeezelite compares the max rate
against the stream sample rate/32 (i.e. 45158400/32 =1411200 )

As a test I suggest adding the following squeezelite command line option
"-r 44100-1411200"



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread lordvader


OK - so did a firmware downgrade, as denfarips removed DSD1024 support
for macos ...

Here the device specs:

Code:

tc@pCP:/var/log$ cat /proc/asound/card1/stream0
  DENAFRIPS USB HiRes Audio at usb-:01:00.0-1.3, high speed : USB Audio
  
  Playback:
  Status: Stop
  Interface 1
  Altset 1
  Format: S32_LE
  Channels: 2
  Endpoint: 1 OUT (ASYNC)
  Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 
768000, 1411200, 1536000
  Data packet interval: 125 us
  Bits: 32
  Channel map: FL FR
  Interface 1
  Altset 2
  Format: SPECIAL DSD_U32_BE
  Channels: 2
  Endpoint: 1 OUT (ASYNC)
  Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 
768000, 1411200, 1536000
  Data packet interval: 125 us
  Bits: 32
  DSD raw: DOP=0, bitrev=0
  Channel map: FL FR



And here's the squeezelite output:

Code:

[18:41:38.344130] sendRESP:226 RESP
  [18:41:38.404568] _read_header:192 id: DSD  len: 28 consume: 28
  [18:41:38.404651] _read_header:159 DSF version: 1 format: 0
  [18:41:38.404677] _read_header:169 channels: 2
  [18:41:38.404708] _read_header:170 sample rate: 45158400
  [18:41:38.404728] _read_header:171 lsb first: 1
  [18:41:38.404747] _read_header:172 sample bytes: 4914292240
  [18:41:38.404775] _read_header:173 block size: 4096
  [18:41:38.404794] _read_header:192 id: fmt  len: 52 consume: 52
  [18:41:38.404814] _read_header:179 found dsd len: 9828589580
  [18:41:38.404834] dsd_decode:768 setting track_start
  [18:41:38.404853] dsd_decode:812 DSD sample rate too high for device - 
converting to PCM
  [18:41:38.404872] dsd_decode:817 DSD to PCM output
  [18:41:38.432068] _output_frames:65 start buffer frames: 176128
  [18:41:38.442543] _output_frames:87 pause 1058 frames
  [18:41:38.442602] _output_frames:87 pause 0 frames
  [18:41:38.442615] _output_frames:153 track start sample rate: 5644800 
replay_gain: 0
  [18:41:38.452647] output_thread:682 open output device: hw:CARD=Audio,DEV=0
  [18:41:38.470657] alsa_open:351 opening device at: 5644800
  [18:41:38.471107] alsa_open:381 reopening device hw:CARD=Audio,DEV=0 in plug 
mode as plughw:CARD=Audio,DEV=0 for resampling
  [18:41:38.472231] alsa_open:422 opened device plughw:CARD=Audio,DEV=0 using 
format: S32_LE sample rate: 5644800 mmap: 1
  [18:41:38.472612] alsa_open:513 buffer: 80 period: 4 -> buffer size: 451584 
period size: 112896
  [18:41:38.473190] alsa_open:530 unable to set hw params: Invalid argument




lordvader's Profile: http://forums.slimdevices.com/member.php?userid=68712
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread lordvader


bpa wrote: 
> The error message is shown when squeezelite has determined that the
> sample rate of the stream is too high for the "supported sample rates" -
> not  sure where that comes from yet.
> 
> Run the alsacap tool to show what ALSA capabilities are for the device.

Hmmm... This is what I get:

Code:

Card 1, ID `Audio', name `USB HiRes Audio'
  Device 0, ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
  2 channels, sampling rate 44100..768000 Hz
  Sample formats: S32_LE, SPECIAL, DSD_U32_BE
  Buffer size range from 16 to 131072
  Period size range from 8 to 65536
  Subdevice 0, name `subdevice #0'
  



Could there be a kernel limitation, or perhaps I should try a different
usb port? Using a 2gb pi4



lordvader's Profile: http://forums.slimdevices.com/member.php?userid=68712
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


Re: [SlimDevices: Unix] Announce: Squeezelite - a small headless squeezeplay emulator for linux (alsa only)

2021-08-07 Thread bpa


lordvader wrote: 
> DSD1024 isn't generally available, but anything I can do to help debug,
> would love to have a crack at it.

The error message is shown when squeezelite has determined that the
sample rate of the stream is too high for the "supported sample rates" -
not  sure where that comes from yet.

Run the alsacap tool to show what ALSA capabilities are for the device.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

___
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix


  1   2   3   4   5   6   7   8   9   10   >