You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
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