Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

Squeezelite: How to get the sample rate of the stream ???

$
0
0
> 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

Viewing all articles
Browse latest Browse all 6235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>