Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.31 KB

README.md

File metadata and controls

43 lines (27 loc) · 1.31 KB

plugin-flac

The official Amplitude Audio plugin that adds encoding/decoding of FLAC files to your project.

How to build

This plugin used CMake and vcpkg. You may need to install them first before to build.

Configure the CMake project by giving the path to your Amplitude Audio SDK installation:

$ cmake -DCMAKE_TOOLCHAIN_FILE:STRING=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake -DAM_SDK_PATH:STRING=/path/to/sdk --no-warn-unused-cli -S/path/to/plugin-flac -B/path/to/plugin-flac/build -G Ninja

Note: We recommend to use Ninja as the generator, but you can use the one you wish.

Once configured, you can build the project using:

$ cmake --build /path/to/plugin-flac/build --target all

Then, you can install the plugin in the SDK folder with:

$ cmake --build /path/to/plugin-flac/build --target install

How to use

The plugin identifier is AmplitudeFlacCodecPlugin, you will just have to use that name when loading the plugin through the engine:

// Release builds
Engine::LoadPlugin(AM_OS_STRING("AmplitudeFlacCodecPlugin"));

// Debug builds
Engine::LoadPlugin(AM_OS_STRING("AmplitudeFlacCodecPlugin_d"));

License

Licensed under the Apache License 2.0.