class
DrFlacImporterFLAC audio importer plugin using dr_flac.
Contents
Supports mono, stereo and surround sound files of the following formats using the dr_
- 8 bit-per-channel, imported as BufferFormat::
Mono8, BufferFormat:: Stereo8, BufferFormat:: Quad8, BufferFormat:: Surround51Channel8, BufferFormat:: Surround61Channel8 or BufferFormat:: Surround71Channel8 - 16 bit-per-channel, imported as BufferFormat::
Mono16, BufferFormat:: Stereo16, BufferFormat:: Quad16, BufferFormat:: Surround51Channel16, BufferFormat:: Surround61Channel16 or BufferFormat:: Surround71Channel16 - 24 bit-per-channel, imported as BufferFormat::
MonoFloat, BufferFormat:: StereoFloat, BufferFormat:: Quad32, BufferFormat:: Surround51Channel32, BufferFormat:: Surround61Channel32 or BufferFormat:: Surround71Channel32 - 32 bit-per-channel, imported as BufferFormat::
MonoDouble, BufferFormat:: StereoDouble, BufferFormat:: Quad32, BufferFormat:: Surround51Channel32, BufferFormat:: Surround61Channel32 or BufferFormat:: Surround71Channel32
This plugin depends on the Audio library and is built if WITH_DRFLACAUDIOIMPORTER
is enabled when building Magnum. To use as a dynamic plugin, you need to load the "DrFlacAudioImporter"
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 DrFlacAudioImporter
component of the MagnumPlugins
package and link to the MagnumPlugins::DrFlacAudioImporter
target.
This plugins provides FlacAudioImporter
, but note that this plugin doesn't handle CRC checks, corrupt or perverse FLAC streams, or broadcast streams.
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
- DrFlacImporter() explicit
- Default constructor.
-
DrFlacImporter(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()