headphones/firmware/tools
george-norton 992df01067
Fix audio distortion (#8)
* Fix an overflow in the fix16_t usage which can lead to audio distortion.

* Add a simple test application for running the filtering stages on a PC.

* Fix readme typos.

* Rename test to tools.

* Remove volume multiplier

---------

Co-authored-by: George Norton <george.norton@mediakind.com>
2023-04-05 16:23:35 -04:00
..
CMakeLists.txt Fix audio distortion (#8) 2023-04-05 16:23:35 -04:00
README.md Fix audio distortion (#8) 2023-04-05 16:23:35 -04:00
filter_test.c Fix audio distortion (#8) 2023-04-05 16:23:35 -04:00

README.md

filter_test

This is a basic utility for testing the Ploopy headphones filtering routines on a PC.

Usage

Find a source file and use ffmpeg to convert it to 16bit stereo PCM samples:

ffmpeg -i <input file> -map 0:6 -vn -f s16le -acodec pcm_s16le input.pcm

Run filter_test to process the PCM samples. The filter_test program takes two arguments an input file and an output file:

./filter_test input.pcm output.pcm

You can listen to the PCM files using ffplay (which is usually included with ffmpeg):

./ffplay -f s16le -ar 48000 -ac 2 output.pcm

If there are no obvious problems, go ahead and flash your firmware.