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:

## 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)

## Detailed Description

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

Author
  Phil Schatzmann

Copyright
  Apache License Version 2

## 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

Implements SoundData.

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

- src/SoundData.h
- src/SoundData.cpp