Arduino A2DP
Public Member Functions | List of all members
SoundData Class Referenceabstract

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>

Inheritance diagram for SoundData:
OneChannel8BitSoundData OneChannelSoundData TwoChannelSoundData

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)
 

Detailed Description

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.

Author
Phil Schatzmann

Member Function Documentation

◆ doLoop()

bool SoundData::doLoop ( )

Automatic restart playing on end


The documentation for this class was generated from the following files: