|
Rumba C++ SDK
|
An Audio waveform, always 16 bits stereo 44.1 khz. More...
#include <Waveform.h>
Public Member Functions | |
| virtual StringView | type_name () const |
| From UserData. More... | |
| Waveform (float seconds) | |
| Waveform (std::vector< int16_t > &&buffer) | |
| Waveform ()=default | |
| gsl::span< const int16_t > | buffer () const |
| Returns the stream buffer, size is samples*channels. More... | |
| int | samples () const |
| Return the number of samples. More... | |
Public Member Functions inherited from maquina::UserData | |
| virtual | ~UserData () |
| virtual std::shared_ptr< NodeDelegate > | node_delegate (const std::shared_ptr< NodeDelegate > &, const StringView &) const |
| Override this method if the final type has a NodeDelegate. More... | |
| virtual bool | has_node_delegate () const |
Static Public Attributes | |
| static const int | sample_rate = 44100 |
| The sample rate. More... | |
| static const int | channels = 2 |
| The channel count. More... | |
An Audio waveform, always 16 bits stereo 44.1 khz.
|
inline |
|
inline |
|
default |
|
inline |
Returns the stream buffer, size is samples*channels.
|
inline |
Return the number of samples.
|
inlinevirtual |
From UserData.
Implements maquina::UserData.
|
static |
The channel count.
|
static |
The sample rate.