Arduino A2DP
Public Member Functions | List of all members
TwoChannelSoundData Class Reference

Data is provided in two channels of int16 data: so len is in 4 byte entries (int16 + int16) More...

#include <SoundData.h>

Inheritance diagram for TwoChannelSoundData:
SoundData

Public Member Functions

 TwoChannelSoundData (bool loop=false)
 
 TwoChannelSoundData (Frame *data, int32_t len, bool loop=false)
 
void setData (Frame *data, int32_t len)
 
void setDataRaw (uint8_t *data, int32_t len)
 
int32_t getData (int32_t pos, int32_t len, Frame *data)
 
int32_t getData (int32_t pos, Frame &channels)
 
int32_t get2ChannelData (int32_t pos, int32_t len, uint8_t *data)
 
int32_t count ()
 
bool doLoop ()
 
void setLoop (bool loop)
 

Detailed Description

Data is provided in two channels of int16 data: so len is in 4 byte entries (int16 + int16)

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ TwoChannelSoundData()

TwoChannelSoundData::TwoChannelSoundData ( Frame *  data,
int32_t  len,
bool  loop = false 
)

Constructor for Data containing 2 channels

Member Function Documentation

◆ doLoop()

bool SoundData::doLoop ( )
inherited

Automatic restart playing on end

◆ get2ChannelData()

int32_t TwoChannelSoundData::get2ChannelData ( int32_t  pos,
int32_t  len,
uint8_t *  data 
)
virtual

pos and len in bytes

Reimplemented from SoundData.


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