01-19-2025, 11:08 PM
(01-19-2025, 07:43 PM)roderickvd Wrote:(01-18-2025, 02:18 PM)Tim Curtis Wrote: Right, the decoded_to string is currently hardcoded.
How about DECODED or DECODED_TO and stuff it with the appropriate format
"PCM 16 bit 44.1 kHz, Stereo"
"PCM 24 bit 48 kHz, Mono"
That way there is no need to parse it for Audio info.
Added it in 887246a and called the variable "DECODER".
Will play around a little more and release v0.10.0 soon.
Observations:
We have FORMAT which contains the "streaming format" i.e., the output of Deezer streaming server encoder for example MP3 320K or FLAC 823K. These are compression formats. MP3 is lossy and as such has no bit-depth. FLAC is lossless and so the source bit-depth can be determined.
When pleezer receives one of these streams and translates (decodes) it to a PCM format for output to the audio device I would assume that MP3 would always decode to 16/44.1 while FLAC could be 16 or 24bit and 44.1 or 48K. Something like that.