Prepare directory:
mkdir build
cd build
Build and run main executable:
cmake ..
make
./bpm
Build with tests:
cmake -DBUILD_TESTS=ON ..
make
./unit_tests
WAV read
- RIFF - little-endian, RIFX - big-endian
- if not PCM - extra params in the end of "fmt"
- extra chunks
Types:
- calculate average without sum overflow
- how to write chars to file
- proper rendering of values in the image
View file in hex:
xxd -g 1 test.wav | less