C++ Example ============== CMakeLists.txt ^^^^^^^^^^^^^^ .. literalinclude:: ../../../../src/sample/CMakeLists.txt :language: cpp :emphasize-lines: 9,12,15,18,19 :linenos: main.cpp ^^^^^^^^ .. literalinclude:: ../../../../src/sample/main.cpp :language: cpp :emphasize-lines: 30,54,69,78 :linenos: File format support ^^^^^^^^^^^^^^^^^^^ This sample demonstrates processing of raw audio files. To convert other formats to float32 input we recommend using libsndfile. In **CMakeLists.txt**: * add **sndfile** to the **target_link_libraries** * add the include and lib paths for libsndfile to **target_include_directories** and **target_link_directories** In **util.h**: * uncomment the two wav functions In **main.cpp**: * switch the call to **rawFloatsFromFile** to **floatsFromWavFile** * switch the call to **rawFloatsToFile** to **floatsToWavFile** Install libsndfile: .. tabs:: .. code-tab:: console Linux apt install libsndfile1-dev .. code-tab:: console Mac OSX brew install libsndfile