Kaynağa Gözat

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

dds
PaulStoffregen 12 yıl önce
ebeveyn
işleme
677c072ca1
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. +1
    -0
      play_sd_wav.cpp

+ 1
- 0
play_sd_wav.cpp Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet