sevi_at wrote: 
> @marcoc1712
> Thanks for the quick reply
> 
> Unfortunately, I need dmix, because I have to mix several sound outputs
> together Airplay, Spotify, MPD ... 
> is it possible to set alsa - dmix fix to 44100? at Airplay, Spotify, MPD
> is that too why is not that at squeezelite?
> 
> 1)
> what could I change here?:
> > 
Code:
--------------------
  >   > pcm.dmixer02 { 
  > type dmix 
  > ipc_key 100224
  > ipc_key_add_uid false
  > ipc_perm 0666
  > slave { 
  > pcm "snd02_card"
  > period_time 0 
  > period_size 1536 
  > buffer_size 12288
  > rate 44100
  > }
  > bindings { 
  > 0 0 
  > 1 1 
  > } 
  > }
--------------------
> > 
> 
> 2)
> how can i enable resampling in squeezelite or in the LM server?
> my start option:
> usr/bin/squeezelite-armv6hf -Z 44100 -W -c flac,pcm,mp3,ogg,aac -b
> 2048:4096 -a 60:16::0 -r 44100,44100 -d output=info -f
> /tmp/squeeze.log -p 97 -o squeeze01 -n test -m 00:00:00:00:00:01 -z
> 
> 3)
> I still have one question left:
> > 
Code:
--------------------
  >   > [14:03:16.009665] ALSA snd_pcm_dmix_open:1022 unable to open slave
--------------------
> > 
> what does that mean?
> 
> 
> THX


I don't know what -Z is for in your version, but with -r 41000, 41000,
you sure could only play material at 44100Hz, resampling has then no
meaning here. 

To resample on the server you have many ways, have a look to C-3PO
plugin, for instance, in squeezelite you could add the option (from the
manual): 

-r [:] Sample rates supported, allows output to be off when squeezelite
is started; rates = |-|,,; delay = optional delay switching rates in ms
-R -u [params] Resample, params = ::::::, recipe = (v|h|m|l|q)(L|I|M)(s)
[E|X], E = exception - resample only if native rate not supported, X =
async - resample to max rate for device, otherwise to max sync rate
flags = num in hex, attenuation = attenuation in dB to apply (default is
-1db if not explicitly set), precision = number of bits precision (NB.
HQ = 20. VHQ = 28), passband_end = number in percent (0dB pt. bandwidth
to preserve. nyquist = 100%), stopband_start = number in percent
(Aliasing/imaging control. > passband_end), phase_response = 0-100 (0 =
minimum / 50 = linear / 100 = maximum).

DMIX is after squeezelite and it COULD resample if it has to mix
different sources with different sampling rates, Squeezelite could do
nothing in that matter and  AFAIK neither MPD nor any other player could
change the beaviour of DMIX in that matter. The message comes form
ALSA/DMIX, you should check there for errors. If  you could not
avoid/need  DMIX you should then avoid any constraint to ALSA, that 
probably will results in errors. Maybe you may give a try to  -C 1
option instead, that make squeezelite 'release' the audio board as soon
as it stop play.



____________________________________________________________
SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo
reference and DIS Interconnect.
------------------------------------------------------------------------
marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to