您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
380B

  1. #ifndef play_memory_h_
  2. #define play_memory_h_
  3. #include "AudioStream.h"
  4. class AudioPlayMemory : public AudioStream
  5. {
  6. public:
  7. AudioPlayMemory(void) : AudioStream(0, NULL), playing(0) { }
  8. void play(const unsigned int *data);
  9. void stop(void);
  10. virtual void update(void);
  11. private:
  12. const unsigned int *next;
  13. uint32_t length;
  14. int16_t prior;
  15. volatile uint8_t playing;
  16. };
  17. #endif