3 ms·
Last time I used Rust to build a music player, the resulting audio quality was much worse than my C++ version. I'm sure these new kids on the block ("Rustaceans
by capableweb 4y ago
Last time I used Rust to build a music player, the resulting audio quality was much worse than my C++ version. I'm sure these new kids on the block ("Rustaceans" or whatever they call themselves) know what they are doing when building web applications and CLIs, but when audio quality has to 120% of the original sound, nothing beats true and tested C++. I cannot explain how or why, but programs made with C++ just sounds better, fuller and more authentic than programs made with other languages.
- trhr 4y agoC++ has a lower-latency linker.
- KptMarchewa 4y agoBut Rust's advanced type system will surely result in better instrument separation and wider scene.
- professoretc 4y agoThe borrow checker acts as a subtle low-pass filter, rolling off some of the high end and leading to less clarity.
- cozzyd 4y agoThis is because rust's borrow checker is incapable of representing some perfectly valid sounds.
- c22 4y agoHave you tried using an audio player written in hand-rolled assembly?
- xdennis 4y agoIt sounds like a good idea but it produces worse results on other CPUs. It's best to always compile on every install as it uses the best instruction set extensions available. AVX2 produces a nice musky sound. But only with AVX-512 do you get rich aftersounds.
- c22 4y agoOf course the solution is not portable. It works for me, though. Ever since I spent $50k on my gold-plated, custom-tuned 486dx in 1992 I haven't been able to justify an upgrade (many of the Pentium series chips produced terrible audio, even in the high-end market).