|
|
|
|
|
|
|
|
#include "play_sd_raw.h" |
|
|
#include "play_sd_raw.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AudioPlaySDcardRAW::begin(void) |
|
|
|
|
|
|
|
|
void AudioPlaySdRaw::begin(void) |
|
|
{ |
|
|
{ |
|
|
playing = false; |
|
|
playing = false; |
|
|
if (block) { |
|
|
if (block) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool AudioPlaySDcardRAW::play(const char *filename) |
|
|
|
|
|
|
|
|
bool AudioPlaySdRaw::play(const char *filename) |
|
|
{ |
|
|
{ |
|
|
stop(); |
|
|
stop(); |
|
|
rawfile = SD.open(filename); |
|
|
rawfile = SD.open(filename); |
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void AudioPlaySDcardRAW::stop(void) |
|
|
|
|
|
|
|
|
void AudioPlaySdRaw::stop(void) |
|
|
{ |
|
|
{ |
|
|
__disable_irq(); |
|
|
__disable_irq(); |
|
|
if (playing) { |
|
|
if (playing) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AudioPlaySDcardRAW::update(void) |
|
|
|
|
|
|
|
|
void AudioPlaySdRaw::update(void) |
|
|
{ |
|
|
{ |
|
|
unsigned int i, n; |
|
|
unsigned int i, n; |
|
|
|
|
|
|