Browse Source

Rename AudioPlaySDcardRAW to AudioPlaySdRaw

dds
PaulStoffregen 10 years ago
parent
commit
8e66b244fc
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      play_sd_raw.cpp
  2. +2
    -2
      play_sd_raw.h

+ 4
- 4
play_sd_raw.cpp View File

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



+ 2
- 2
play_sd_raw.h View File

#include "AudioStream.h" #include "AudioStream.h"
#include "SD.h" #include "SD.h"


class AudioPlaySDcardRAW : public AudioStream
class AudioPlaySdRaw : public AudioStream
{ {
public: public:
AudioPlaySDcardRAW(void) : AudioStream(0, NULL) { begin(); }
AudioPlaySdRaw(void) : AudioStream(0, NULL) { begin(); }
void begin(void); void begin(void);
bool play(const char *filename); bool play(const char *filename);
void stop(void); void stop(void);

Loading…
Cancel
Save