Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

23 lines
393B

  1. #ifndef play_sd_raw_h_
  2. #define play_sd_raw_h_
  3. #include "AudioStream.h"
  4. #include "SD.h"
  5. class AudioPlaySDcardRAW : public AudioStream
  6. {
  7. public:
  8. AudioPlaySDcardRAW(void) : AudioStream(0, NULL) { begin(); }
  9. void begin(void);
  10. bool play(const char *filename);
  11. void stop(void);
  12. virtual void update(void);
  13. private:
  14. File rawfile;
  15. audio_block_t *block;
  16. bool playing;
  17. bool paused;
  18. };
  19. #endif