WAV importer plugin.
Supports mono and stereo files of the following formats:
- 8 bit per channel PCM, imported as BufferFormat::
Mono8 and BufferFormat:: Stereo8
- 16 bit per channel PCM, imported as BufferFormat::
Mono16 and BufferFormat:: Stereo16
- 32-bit IEEE Float, imported as BufferFormat::
MonoFloat / BufferFormat:: StereoFloat
- 64-bit IEEE Float, imported as BufferFormat::
MonoDouble / BufferFormat:: StereoDouble
- A-Law, imported as BufferFormat::
MonoALaw / BufferFormat:: StereoALaw
- μ-Law, imported as BufferFormat::
MonoMuLaw / BufferFormat:: StereoMuLaw
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.
This plugin is built if
MAGNUM_WITH_WAVAUDIOIMPORTER is enabled when building Magnum. To use dynamic plugin, load
"WavAudioImporter" via Corrade::
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
find_package(Magnum REQUIRED WavAudioImporter) # ... target_link_libraries(your-app PRIVATE Magnum::WavAudioImporter)
Multi-channel formats are not supported.
- class AbstractImporter
- Base for audio importer plugins.