Data is provided in two channels of int16 data: so len is in 4 byte entries (int16 + int16)
More...
#include <SoundData.h>
|
| 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) |
|
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
◆ TwoChannelSoundData()
TwoChannelSoundData::TwoChannelSoundData |
( |
Frame * |
data, |
|
|
int32_t |
len, |
|
|
bool |
loop = false |
|
) |
| |
Constructor for Data containing 2 channels
◆ 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.
◆ getData()
int32_t TwoChannelSoundData::getData |
( |
int32_t |
pos, |
|
|
Frame & |
channels |
|
) |
| |
|
virtual |
◆ setDataRaw()
void TwoChannelSoundData::setDataRaw |
( |
uint8_t * |
data, |
|
|
int32_t |
len |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: