> Lets say I ask for a Deezer track, LMS will stream that track to
> Squeezelite as is.
> Squeezelite will upsample it.
> What I want is to know from a Linux command line is the original stream
> sample rate on the fly.
It's not clear to me at what moment you need that information. Before
playback starts? Once it's playing? At any time?
As bpa mentioned you can use the "status" query to get information about
the currently playing track. From a shell:
curl -X POST -sd
'{"id":0,"params":["00:04:20:...",["status",0,1,"tags:T"]],"method":"slim.request"}'
http://localhost:9000/jsonrpc.js | jq '.result.playlist_loop[0].samplerate'
--
Michael
> Squeezelite as is.
> Squeezelite will upsample it.
> What I want is to know from a Linux command line is the original stream
> sample rate on the fly.
It's not clear to me at what moment you need that information. Before
playback starts? Once it's playing? At any time?
As bpa mentioned you can use the "status" query to get information about
the currently playing track. From a shell:
curl -X POST -sd
'{"id":0,"params":["00:04:20:...",["status",0,1,"tags:T"]],"method":"slim.request"}'
http://localhost:9000/jsonrpc.js | jq '.result.playlist_loop[0].samplerate'
--
Michael