You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Reid c7497580fd dr_wav: AIFF compatibility improvements. 1 year ago
..
bin dr_opus: Work on test infrastructure. 6 years ago
common Add 64-bit RNG for tests. 3 years ago
external Add playback test for dr_mp3. 5 years ago
flac dr_flac: Update the decoding test. 2 years ago
mp3 Fix a warning in a test project. 4 years ago
opus dr_opus: Update high level API to use result codes. 5 years ago
testvectors dr_flac: Update the decoding test. 2 years ago
wav dr_wav: AIFF compatibility improvements. 1 year ago
README.md dr_flac: Update the decoding test. 2 years ago
build_flac_linux.sh Fixed build_flac_linux not having -ldl for one of the tests. Renamed to .sh, added shebang, and made executable. Added basic flac test instructions to test README.md. 4 years ago
build_flac_win32.bat dr_flac: C++ fixes. 5 years ago
build_mp3_win32.bat dr_mp3: Update build script for tests. 2 years ago
build_opus_win32.bat dr_opus: Update opus build script to build the decoding test. 5 years ago
build_wav_win32.bat dr_wav: C++ fixes. 5 years ago

README.md

Building

Move into this directory and run the build script for the relevant platform. Run from this directory.

clear && ./build_opus && ./bin/dr_opus_test_0

Alternatively you can compile a specific test manually:

clear && gcc ./opus/dr_opus_test_0 -o ./bin/dr_opus_test_0 && ./bin/dr_opus_test_0

Test vectors will be loaded from the "testvectors" folder, relative to this directory. Therefore, you need to run each test program from this directory:

./bin/dr_opus_test_0

Building and Running WAV Tests

The WAV tests use libsndfile as a benchmark. The tests programs dynamically link to libsndfile at runtime which means you don't need to link to it at compile time. However, you will need the headers installed in a standard location. The batch files for the Windows build will allow you to customize the include path. On the Windows build you will need to drop two versions of libsndfile-1.dll into the bin directory. For the 32-bit build you need to name it libsndfile-1-x86.dll and for the 64-bit build you need to name it libsndfile-1-x64.dll.

Test Vectors

In order to run certain tests you will need to download test vectors for the relevant project and place them into the "testvectors" folder.

Opus

  • Download both the original and new test vectors from https://opus-codec.org/testvectors/ and place them into the "testvectors/opus" folder.
  • Download the Ogg Opus test vectors from https://wiki.xiph.org/OggOpus/testvectors and place them into the "testvectors/opus" folder.
  • The folder structure should like like the following:
    • testvectors
      • opus
        • opus_testvectors
        • opus_newvectors
        • oggopus
          • failure_cases
          • opus_multichannel_examples

FLAC