class
StbVorbisImporterOGG audio importer plugin using stb_vorbis.
Contents
Supports mono, stereo and surround sound files with 16 bits per channel. The files are imported with BufferFormat::
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.
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.
See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.
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.
Private functions
- auto doFeatures() const override -> Features virtual
- Implementation for features()
- auto doIsOpened() const override -> bool virtual
- Implementation for isOpened()
-
void doOpenData(Containers::
ArrayView<const char> data) override virtual - Implementation for openData()
- void doClose() override virtual
- Implementation for close()
- auto doFormat() const override -> BufferFormat virtual
- Implementation for format()
- auto doFrequency() const override -> UnsignedInt virtual
- Implementation for frequency()
-
auto doData() override -> Containers::
Array<char> virtual - Implementation for data()