Magnum::Audio::WavImporter class

WAV importer plugin.

Supports mono and stereo files of the following formats:

Both Little-Endian files (with a RIFF header) and Big-Endian files (with a RIFX header) are supported, data is converted to machine endian on import.

Usage

This plugin is built if MAGNUM_WITH_WAVAUDIOIMPORTER is enabled when building Magnum. To use dynamic plugin, load "WavAudioImporter" via Corrade::PluginManager::Manager.

Additionally, if you're using Magnum as a CMake subproject, do the following:

set(MAGNUM_WITH_WAVAUDIOIMPORTER ON CACHE BOOL "" FORCE)
add_subdirectory(magnum EXCLUDE_FROM_ALL)

# So the dynamically loaded plugin gets built implicitly
add_dependencies(your-app Magnum::WavAudioImporter)

To use as a static plugin or as a dependency of another plugin with CMake, you need to request the WavAudioImporter component of the Magnum package and link to the Magnum::WavAudioImporter target:

find_package(Magnum REQUIRED WavAudioImporter)

# ...
target_link_libraries(your-app PRIVATE Magnum::WavAudioImporter)

See Downloading and building, Usage with CMake and Loading and using plugins for more information.

Behavior and limitations

Multi-channel formats are not supported.

Base classes

class AbstractImporter
Base for audio importer plugins.

Constructors, destructors, conversion operators

WavImporter() explicit
Default constructor.
WavImporter(PluginManager::AbstractManager& manager, const Containers::StringView& plugin) explicit
Plugin manager constructor.