16bit integer audio buffer.
More...
#include <buffer.hpp>
|
using | Samples = std::vector< short > |
|
|
static auto | load (const std::filesystem::path &path) -> Buffer |
| Load shared buffer. More...
|
|
16bit integer audio buffer.
◆ Buffer() [1/2]
template<class T >
mos::aud::Buffer::Buffer |
( |
const T |
begin, |
|
|
const T |
end, |
|
|
const int |
channels = 1 , |
|
|
const int |
sample_rate = 44100 |
|
) |
| |
|
inline |
Construct buffer from a container of shorts.
◆ Buffer() [2/2]
mos::aud::Buffer::Buffer |
( |
int |
channels = 1 , |
|
|
int |
sample_rate = 44100 |
|
) |
| |
|
explicit |
Empty buffer constructor.
◆ channels()
auto mos::aud::Buffer::channels |
( |
| ) |
const -> int |
◆ data()
auto mos::aud::Buffer::data |
( |
| ) |
const -> const short * |
◆ duration()
auto mos::aud::Buffer::duration |
( |
| ) |
const -> float |
◆ id()
auto mos::aud::Buffer::id |
( |
| ) |
const -> unsigned int |
◆ load()
static auto mos::aud::Buffer::load |
( |
const std::filesystem::path & |
path | ) |
-> Buffer |
|
static |
◆ size()
auto mos::aud::Buffer::size |
( |
| ) |
const -> size_t |
Size of samples container.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/mos/checkouts/latest/include/mos/aud/buffer.hpp