瀏覽代碼

add comment to look into thread safety in SD WAV play()

dds
PaulStoffregen 10 年之前
父節點
當前提交
677c072ca1
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      play_sd_wav.cpp

+ 1
- 0
play_sd_wav.cpp 查看文件

@@ -59,6 +59,7 @@ void AudioPlaySdWav::begin(void)
bool AudioPlaySdWav::play(const char *filename)
{
stop();
// TODO: SD.open probably needs to be done with the audio interrupt disabled...
wavfile = SD.open(filename);
if (!wavfile) return false;
buffer_length = 0;

Loading…
取消
儲存