Magnum::Audio::Faad2Importer class

AAC audio importer plugin using FAAD2.

Imports mono and stereo AAC files with 16 bits per channel using the FAAD2 library.

This plugins provides AacAudioImporter.

Usage

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

Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-plugins repository and do the following. Using FAAD2 itself as a CMake subproject isn't tested at the moment, so you need to provide it as a system dependency and point CMAKE_PREFIX_PATH to its installation dir if necessary.

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

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

To use as a static plugin or as a dependency of another plugin with CMake, request the Faad2AudioImporter component of the MagnumPlugins package and link to the MagnumPlugins::Faad2AudioImporter target:

find_package(MagnumPlugins REQUIRED Faad2AudioImporter)

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

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

Behavior and limitations

The files are always imported with BufferFormat::Stereo16.

Base classes

class AbstractImporter
Base for audio importer plugins.

Constructors, destructors, conversion operators

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

Function documentation

Magnum::Audio::Faad2Importer::Faad2Importer() explicit

Default constructor.