Magnum::Audio::StbVorbisImporter class

OGG audio importer plugin using stb_vorbis.

Supports mono, stereo and surround sound files with 16 bits per channel using the stb_vorbis library. The files are imported with BufferFormat::Mono16, BufferFormat::Stereo16, BufferFormat::Quad16, BufferFormat::Surround51Channel16, BufferFormat::Surround61Channel16 and BufferFormat::Surround71Channel16, respectively.

This plugin depends on the Audio library and is built if WITH_STBVORBISAUDIOIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the "StbVorbisAudioImporter" plugin from MAGNUM_PLUGINS_AUDIOIMPORTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the StbVorbisAudioImporter component of the MagnumPlugins package and link to the MagnumPlugins::StbVorbisAudioImporter target. See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.

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.

Base classes

class AbstractImporter
Base for audio importer plugins.

Constructors, destructors, conversion operators

StbVorbisImporter() explicit
Default constructor.
StbVorbisImporter(PluginManager::AbstractManager& manager, const std::string& plugin) explicit
Plugin manager constructor.