Magnum::Audio::Buffer class

Sample buffer.

Public types

using Format = BufferFormat deprecated
Buffer sample format.

Constructors, destructors, conversion operators

Buffer() explicit
Constructor.
~Buffer()
Destructor.
Buffer(const Buffer&) deleted
Copying is not allowed.
Buffer(Buffer&& other)
Move constructor.

Public functions

auto operator=(const Buffer&) -> Buffer& deleted
Copying is not allowed.
auto operator=(Buffer&& other) -> Buffer&
Move assignment.
auto id() const -> ALuint
OpenAL buffer ID.
auto setData(BufferFormat format, Containers::ArrayView<const void> data, ALsizei frequency) -> Buffer&
Set buffer data.

Typedef documentation

typedef BufferFormat Magnum::Audio::Buffer::Format

Buffer sample format.

Function documentation

Magnum::Audio::Buffer::Buffer() explicit

Constructor.

Creates OpenAL buffer object.

Magnum::Audio::Buffer::~Buffer()

Destructor.

Deletes OpenAL buffer object.

Buffer& Magnum::Audio::Buffer::setData(BufferFormat format, Containers::ArrayView<const void> data, ALsizei frequency)

Set buffer data.

Parameters
format Sample format
data Data
frequency Frequency
Returns Reference to self (for method chaining)