(20-Jul-2018, 09:14 PM)D629497 Wrote: [ -> ]Hi, I'm trying to figure out if WAV sounds different to FLAC sent to my USB DAC. In LMS file types you can set FLAC to PCM or FLAC decoded as native. Is FLAC decoded to PCM using a different decoder to the native flac decoder? Is FLAC decoded to PCM equivalent to playing a WAV file?
When you set FLAC to:
- native: Logitech Media Server (LMS) will send FLAC frames are sent to the Squeezelite client. This client will then decode these with the FLAC decoder. This is when Squeezelite is playing a FLAC file.
- PCM: LMS wlil decode FLAC files into PCM and send it to Squeezelite. This client will then decode these with the WAV decoder. This is when Squeezelite is playing a WAV file.
(20-Jul-2018, 09:14 PM)D629497 Wrote: [ -> ]Apart from the slight computational overhead of decoding FLAC to PCM in native mode, how could this sound worse than playing the original WAV file?
Computational time for FLAC is trivial. There is no overhead at all. As for different compression levels, from what I can remember higher compression just takes longer to archive. Playback appears to be the same. This is with a NF9C board, which don't even have a fast CPU. If CPU load is not noticiable on this PC, it will be negligible on almost everything else.
Note that the premise of this article is actually the other way round. A brief history of why this article was created, and if memory serves, it goes something like so:
- A long time ago we found out that MPD plays WAV better than FLAC
- It's very hard to pick the difference using LMS
- A dig into the advanced settings and discovered WAV is re-encoded as FLAC with 0 compression
- Realised it's hard to pick the difference then because from Squeezelite's perspective, it's always playing back FLAC
- Set it such that WAV and FLAC are treated natively. and I think I prefer WAV.
So I didn't test decoding FLAC as FLAC or WAV. Instead I tested FLAC => FLAC, and WAV => FLAC. Then FLAC => FLAC and WAV => WAV. And I chose the latter.
Need to reframe the problem from "what sounds better/worse" into "what feels more emotional/engaging/[random audiophile jargon]". Instead of trying to listen for differences, or hear what is better or worse. You need to feel for it. I simply relax as much as possible, let the music come to me and assess my physiological responses. <- This is actually a very hard thing to do and it took me a long time to get to where I am now.
The answer on how to feel for FLAC vs WAV is relatively simple with the right track and volume. Find some high quality bass heavy track. In my experience the LEF from a WAV track is usually better. I don't understand why. And weirdly, when I play the same track with XMMS - they just feel the same. This makes me think it's not the decoder that is the problem, perhaps it's the players?
XMMS is actually the reference player for FLAC, and this is why it's included in Snakeoil OS. This is a very old program and getting this software to compile, let alone work in a modern Linux system took a lot of effort
.
Would it be better for me to archive all my music as FLAC, and set LMS to decode it to WAV and send it out as PCM? Not in my case as I am a developer and need to assess the SQ when everything is in it's native state. That's one of the references I am using when developing this OS.
Users on the other hand are not restricted by this. So here we provide you a good foundation to start with (Snakeoil default install). From there you have free reign to push your limits and find the best way to make music feel good to you. It doesn't matter if it's FLAC, WAV, whatever player, whatever hardware. If you have hair raising on the back of your neck, a sense of excitement, you're on a good start.
The one thing I couldn't provide easily is kernel rolling. This means trying various versions of kernels, with different options, patches etc. Do have a rough idea on how to do this but havn't really started earnestly on it yet.