Magnum::Audio::DrMp3Importer class new in 2019.10

MP3 audio importer plugin using dr_mp3.

Imports 16-bit-per-channel mono, stereo and surround sound files using the dr_mp3 library.

This plugins provides Mp3AudioImporter.

Usage

This plugin depends on the Audio library and is built if MAGNUM_WITH_DRMP3AUDIOIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, load "DrMp3AudioImporter" via Corrade::PluginManager::Manager.

Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-plugins repository and do the following:

set(MAGNUM_WITH_DRMP3AUDIOIMPORTER ON CACHE BOOL "" FORCE)
add_subdirectory(magnum-plugins EXCLUDE_FROM_ALL)

# So the dynamically loaded plugin gets built implicitly
add_dependencies(your-app MagnumPlugins::DrMp3AudioImporter)

To use as a static plugin or as a dependency of another plugin with CMake, put FindMagnumPlugins.cmake into your modules/ directory, request the DrMp3AudioImporter component of the MagnumPlugins package and link to the MagnumPlugins::DrMp3AudioImporter target:

find_package(MagnumPlugins REQUIRED DrMp3AudioImporter)

# ...
target_link_libraries(your-app PRIVATE MagnumPlugins::DrMp3AudioImporter)

See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.

Behavior and limitations

The files are imported as BufferFormat::Mono16 or BufferFormat::Stereo16.

Base classes

class AbstractImporter
Base for audio importer plugins.

Constructors, destructors, conversion operators

DrMp3Importer() deprecated in Git master explicit
Default constructor.
DrMp3Importer(PluginManager::AbstractManager& manager, const Containers::StringView& plugin) explicit
Plugin manager constructor.

Function documentation

Magnum::Audio::DrMp3Importer::DrMp3Importer() explicit

Default constructor.