This struct encapsulates one frame of mono audio output. More...
#include <AudioOutput.h>
Public Member Functions | |
StereoOutput (AudioOutputStorage_t l, AudioOutputStorage_t r) | |
Construct an audio frame from raw values (zero-centered) | |
StereoOutput () | |
Default contstructor. | |
AudioOutputStorage_t | l () const |
AudioOutputStorage_t | r () const |
StereoOutput & | clip () |
Static Public Member Functions | |
static StereoOutput | fromNBit (uint8_t bits, int16_t l, int16_t r) |
static StereoOutput | fromNBit (uint8_t bits, int32_t l, int32_t r) |
static StereoOutput | from8Bit (int16_t l, int16_t r) |
static StereoOutput | from16Bit (int16_t l, int16_t r) |
static StereoOutput | fromAlmostNBit (uint8_t bits, int16_t l, int16_t r) |
static StereoOutput | fromAlmostNBit (uint8_t bits, int32_t l, int32_t r) |
This struct encapsulates one frame of mono audio output.
Internally, it really just boils down to two int values, but the struct provides useful API an top of that. For more detail
Definition at line 85 of file AudioOutput.h.
|
inline |
Definition at line 97 of file AudioOutput.h.
|
inlinestatic |
Definition at line 106 of file AudioOutput.h.
|
inlinestatic |
Definition at line 104 of file AudioOutput.h.
|
inlinestatic |
Definition at line 108 of file AudioOutput.h.
|
inlinestatic |
Definition at line 110 of file AudioOutput.h.
|
inlinestatic |
Definition at line 100 of file AudioOutput.h.
|
inlinestatic |
Definition at line 102 of file AudioOutput.h.