浏览代码

Rename AudioPlaySDcardRAW to AudioPlaySdRaw

dds
PaulStoffregen 10 年前
父节点
当前提交
8e66b244fc
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. +4
    -4
      play_sd_raw.cpp
  2. +2
    -2
      play_sd_raw.h

+ 4
- 4
play_sd_raw.cpp 查看文件

@@ -27,7 +27,7 @@
#include "play_sd_raw.h"


void AudioPlaySDcardRAW::begin(void)
void AudioPlaySdRaw::begin(void)
{
playing = false;
if (block) {
@@ -37,7 +37,7 @@ void AudioPlaySDcardRAW::begin(void)
}


bool AudioPlaySDcardRAW::play(const char *filename)
bool AudioPlaySdRaw::play(const char *filename)
{
stop();
rawfile = SD.open(filename);
@@ -50,7 +50,7 @@ bool AudioPlaySDcardRAW::play(const char *filename)
return true;
}

void AudioPlaySDcardRAW::stop(void)
void AudioPlaySdRaw::stop(void)
{
__disable_irq();
if (playing) {
@@ -63,7 +63,7 @@ void AudioPlaySDcardRAW::stop(void)
}


void AudioPlaySDcardRAW::update(void)
void AudioPlaySdRaw::update(void)
{
unsigned int i, n;


+ 2
- 2
play_sd_raw.h 查看文件

@@ -30,10 +30,10 @@
#include "AudioStream.h"
#include "SD.h"

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

正在加载...
取消
保存