Arduino A2DP
|
Sound data as byte stream. We support TwoChannelSoundData (uint16_t + uint16_t) and OneChannelSoundData which stores the data as array of uint16_t We provide the complete sound data as a simple c array which can be prepared e.g. in the following way. More...
#include <SoundData.h>
Public Member Functions | |
bool | doLoop () |
virtual int32_t | get2ChannelData (int32_t pos, int32_t len, uint8_t *data)=0 |
virtual int32_t | getData (int32_t pos, Frame &channels)=0 |
virtual void | setDataRaw (uint8_t *data, int32_t len)=0 |
void | setLoop (bool loop) |
Sound data as byte stream. We support TwoChannelSoundData (uint16_t + uint16_t) and OneChannelSoundData which stores the data as array of uint16_t We provide the complete sound data as a simple c array which can be prepared e.g. in the following way.
bool SoundData::doLoop | ( | ) |
Automatic restart playing on end