Magnum/Audio/Context.h file

Class Magnum::Audio::Context, macro MAGNUM_ASSERT_AUDIO_EXTENSION_SUPPORTED()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Audio
Audio playback.

Classes

class Magnum::Audio::Extension
Run-time information about OpenAL extension.
class Magnum::Audio::Context
OpenAL context.
class Magnum::Audio::Context::Configuration
OpenAL context configuration.

Functions

auto operator<<(Debug& debug, Context::HrtfStatus value) -> Debug&
Debug output operator.

Defines

#define MAGNUM_ASSERT_AUDIO_EXTENSION_SUPPORTED(extension)
Assert that given OpenAL extension is supported.

Define documentation

#define MAGNUM_ASSERT_AUDIO_EXTENSION_SUPPORTED(extension)

Assert that given OpenAL extension is supported.

Parameters
extension Extension name (from Audio::Extensions namespace)

Useful for initial checks on availability of required features.

By default, if assertion fails, an message is printed to error output and the application aborts. If CORRADE_NO_ASSERT is defined, this macro does nothing. Example usage:

MAGNUM_ASSERT_AUDIO_EXTENSION_SUPPORTED(Audio::Extensions::ALC::SOFTX::HRTF);