slmdev / sac

state-of-the-art lossless audio compression
46 stars 4 forks source link

Audio lossyness between different CPU architectures #7

Open T-3B opened 10 months ago

T-3B commented 10 months ago

Recently I discovered a strange behavior with SAC.

Steps to reproduce:

Tested with aarch64 and x86-64, both with clang 16.0.6 and clang++ -O3 -flto -march=native -s

At least SAC encoding is architecture-dependent (different architectures will give different encoded SAC files - even the size).

On Mega, you can find the original WAV file, as well as the aarch64 and x86-64 SAC encoded files.

sergeevabc commented 9 months ago

@T-3B, which SAC version do you use? Github has 0.5.1, EncodeSu has 0.6.3.

T-3B commented 9 months ago

@sergeevabc I compiled myself the master branch (with a very few extras in my fork). I also made some releases there with LTO and PGO and different CPU architectures (aarch64 and x86_64). So it is 0.6.3.

T-3B commented 9 months ago

Oh, I forgot about that one: #2

Apparently not only because of different CPU architecture, but different OS too.

sergeevabc commented 6 months ago

Hmm, where can I get the binary of version 0.6.7 with “a small fix”?