Thank you to both of you for taking care.:cool:
However, I'm not sure that I was clear with my question.
I use squeezelite with the resample option activated on a Pi.
Squeezelite upsample fine at the max Sync rate of my DAC that is 44K1 ->
176.4K and 48K -> 192K
This I can be sure of, as I get the *Squeezelite output stream info
*from the following :
PLAYING A 44K1 FILE:
Code:
--------------------
# cat /proc/asound/card0/pcm0p/sub0/hw_params
--------------------
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
RATE: 176400 (176400/1)
period_size: 706
buffer_size: 2824
PLAYING A WEB RADIO (48K)
Code:
--------------------
cat /proc/asound/card0/pcm0p/sub0/hw_params
--------------------
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
RATE: 192000 (192000/1)
period_size: 768
buffer_size: 3072
And here is the result of
Code:
--------------------
squeezelite -d all=info
--------------------
[13:20:30.877187] stream_init:448 init stream
[13:20:30.884567] output_init_alsa:940 init output
[13:20:30.884782] output_init_alsa:980 requested alsa_buffer: 40
alsa_period: 4 format: any mmap: 1
[13:20:30.894822] test_open:281 playback open error: Device or resource
busy
[13:20:30.894959] output_init_common:394 unable to open output device:
default
root@StudioCube:~#
root@StudioCube:~#
root@StudioCube:~# squeezelite -d all=info
[13:21:23.445301] stream_init:448 init stream
[13:21:23.452988] output_init_alsa:940 init output
[13:21:23.453208] output_init_alsa:980 requested alsa_buffer: 40
alsa_period: 4 format: any mmap: 1
[13:21:23.533024] output_init_common:425 supported rates: 768000 705600
384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500
16000 12000 11025 8000
[13:21:23.553898] output_init_alsa:1006 memory locked
[13:21:23.555051] output_init_alsa:1012 glibc detected using mallopt
[13:21:23.557047] output_thread:687 open output device: default
[13:21:23.557756] alsa_open:351 opening device at: 44100
[13:21:23.636925] alsa_open:422 opened device default using format:
S32_LE sample rate: 44100 mmap: 1
[13:21:23.642707] alsa_open:513 buffer: 40 period: 4 -> buffer size:
1764 period size: 441
[13:21:23.649591] decode_init:153 init decode
[13:21:23.651425] load_faad:633 loaded libfaad.so.2
[13:21:23.651536] register_faad:663 using faad to decode aac
[13:21:23.654889] load_vorbis:351 loaded libvorbisfile.so.3
[13:21:23.655016] register_vorbis:380 using vorbis to decode ogg
[13:21:23.658369] load_flac:304 loaded libFLAC.so.8
[13:21:23.658503] register_flac:332 using flac to decode ogf,flc
[13:21:23.658562] register_pcm:483 using pcm to decode aif,pcm
[13:21:23.661695] load_mad:394 loaded libmad.so.0
[13:21:23.661832] register_mad:423 using mad to decode mp3
[13:21:23.664125] discover_server:788 sending discovery
[13:21:23.665466] discover_server:799 got response from:
192.168.1.10:3483
[13:21:23.666345] slimproto:887 connecting to 192.168.1.10:3483
[13:21:23.667379] slimproto:926 connected
[13:21:23.668254] slimproto:937 local player
[13:21:23.668406] sendHELO:142 mac: b8:27:eb:f0:1a:54
[13:21:23.669736] sendHELO:144 cap:
Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.9.8-1307,ModelName=SqueezeLite,MaxSampleRate=768000,aac,ogg,ogf,flc,aif,pcm,mp3,loc
[13:21:23.695869] decode_flush:236 decode flush
[13:21:23.696034] output_flush:438 flush output buffer
[13:21:23.697920] decode_flush:236 decode flush
[13:21:23.698143] output_flush:438 flush output buffer
HOWEVER WHAT I NEED TO GET ON THE FLY IS THE SQUEEZELITE INPUT SAMPLE
RATE
I'm sure that the Squeezelite Iput rate information is availlabe somehow
as Squeezelite knows at which rate to do the upsampling.
So my question is which command line will give me the Squeezelite INPUT
Sample rate ?
Thank you for your help.
Jean
------------------------------------------------------------------------
bidule's Profile: http://forums.slimdevices.com/member.php?userid=15337
View this thread: http://forums.slimdevices.com/showthread.php?t=113499
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins