OGG audio importer plugin using stb_vorbis.
Supports mono, stereo and surround sound files with 16 bits per channel using the stb_
This plugins provides
VorbisAudioImporter, but note that this plugin doesn't have complete support for all format quirks and the performance might be worse than when using plugin dedicated for given format.
This plugin depends on the Audio library and is built if
MAGNUM_WITH_STBVORBISAUDIOIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, load
"StbVorbisAudioImporter" via Corrade::
Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-plugins repository and do the following:
set(MAGNUM_WITH_STBVORBISAUDIOIMPORTER ON CACHE BOOL "" FORCE) add_subdirectory(magnum-plugins EXCLUDE_FROM_ALL) # So the dynamically loaded plugin gets built implicitly add_dependencies(your-app MagnumPlugins::StbVorbisAudioImporter)
To use as a static plugin or as a dependency of another plugin with CMake, put FindMagnumPlugins.cmake into your
modules/ directory, request the
StbVorbisAudioImporter component of the
MagnumPlugins package and link to the
find_package(MagnumPlugins REQUIRED StbVorbisAudioImporter) # ... target_link_libraries(your-app PRIVATE MagnumPlugins::StbVorbisAudioImporter)
- class AbstractImporter
- Base for audio importer plugins.