phoboslab / qoa

The “Quite OK Audio Format” for fast, lossy audio compression
MIT License
769 stars 42 forks source link

Converted files have a "beep" at the beginning #3

Closed mattdesl closed 1 year ago

mattdesl commented 1 year ago

Each file has a very loud noise at the beginning of the file once I convert from WAV to QOA and back to WAV.

Steps:

  1. Cloned repo, commented out the qoaplay and MP3/FLAC bits in Makefile
  2. Ran make
  3. Run ./qoaconv input.wav input.qoa && ./qoaconv input.qoa output.wav
  4. output.wav has a noticeable beep, occurs on all tested WAV files

This loud part at the beginning should not be present in the output WAV:

Screenshot 2023-02-02 at 6 33 22 pm

Using a MacBook Pro M1 Max, macOS 12.5.1.

phoboslab commented 1 year ago

Can you please provide the original WAV file, to see if I can reproduce it?

Edit: sorry, nevermind. I have the same problem on macOS. Investigating now!

phoboslab commented 1 year ago

The above commit should fix this problem, I believe. Please let me know if it's still present.

Thanks for reporting!

mattdesl commented 1 year ago

Works now! Thanks. Great little library here, going to see if I can make a JS implementation.