Opaque interface for an Audio Buffer.
More...
#include <le2d/resource/audio_buffer.hpp>
|
virtual auto | decode (std::span< std::byte const > bytes, std::optional< capo::Encoding > encoding={}) -> bool=0 |
|
virtual auto | get_duration () const -> kvf::Seconds=0 |
|
virtual auto | bind (capo::ISource &source) const -> bool=0 |
| Bind this audio buffer to a source.
|
|
virtual auto | is_ready () const -> bool=0 |
| Check if resource is ready to use.
|
|
Opaque interface for an Audio Buffer.
◆ bind()
virtual auto le::IAudioBuffer::bind |
( |
capo::ISource & |
source | ) |
const -> bool |
|
pure virtual |
Bind this audio buffer to a source.
- Parameters
-
- Returns
- true if successfully bound.
◆ decode()
virtual auto le::IAudioBuffer::decode |
( |
std::span< std::byte const > |
bytes, |
|
|
std::optional< capo::Encoding > |
encoding = {} |
|
) |
| -> bool |
|
pure virtual |
- Parameters
-
bytes | Bytes to load. |
encoding | Encoding of audio data, if known. |
- Returns
- true if successfully loaded.
◆ get_duration()
virtual auto le::IAudioBuffer::get_duration |
( |
| ) |
const -> kvf::Seconds |
|
pure virtual |
- Returns
- Length of the audio data in seconds.
The documentation for this class was generated from the following file: