Magnum::Audio::DrMp3Importer class new in 2019.10

MP3 audio importer plugin using dr_mp3.

Supports mono, stereo and surround sound files of the following formats using the dr_mp3 library:

This plugins provides Mp3AudioImporter.

Usage

This plugin depends on the Audio library and is built if 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(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.

Base classes

class AbstractImporter
Base for audio importer plugins.

Constructors, destructors, conversion operators

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