Arduino A2DP
|
Data is provided in two channels of int16 data: so len is in 4 byte entries (int16 + int16) More...
#include <SoundData.h>
Public Member Functions | |
TwoChannelSoundData (bool loop=false) | |
TwoChannelSoundData (Frame *data, int32_t len, bool loop=false) | |
int32_t | count () |
bool | doLoop () |
int32_t | get2ChannelData (int32_t pos, int32_t len, uint8_t *data) |
int32_t | getData (int32_t pos, Frame &channels) |
int32_t | getData (int32_t pos, int32_t len, Frame *data) |
void | setData (Frame *data, int32_t len) |
void | setDataRaw (uint8_t *data, int32_t len) |
void | setLoop (bool loop) |
Data is provided in two channels of int16 data: so len is in 4 byte entries (int16 + int16)
TwoChannelSoundData::TwoChannelSoundData | ( | Frame * | data, |
int32_t | len, | ||
bool | loop = false |
||
) |
Constructor for Data containing 2 channels
|
inherited |
Automatic restart playing on end
|
virtual |
pos and len in bytes
Implements SoundData.