ES8311AudioSink.h 539 B

123456789101112131415161718192021222324252627
  1. #ifndef ES8311AUDIOSINK_H
  2. #define ES8311AUDIOSINK_H
  3. #include "driver/i2s.h"
  4. #include <vector>
  5. #include <iostream>
  6. #include "BufferedAudioSink.h"
  7. #include <stdio.h>
  8. #include <string.h>
  9. #include "driver/gpio.h"
  10. #include "driver/i2c.h"
  11. #include <sys/unistd.h>
  12. #include <sys/stat.h>
  13. #include "esp_err.h"
  14. #include "esp_log.h"
  15. class ES8311AudioSink : public BufferedAudioSink
  16. {
  17. public:
  18. ES8311AudioSink();
  19. ~ES8311AudioSink();
  20. void writeReg(uint8_t reg_add, uint8_t data);
  21. void volumeChanged(uint16_t volume);
  22. private:
  23. };
  24. #endif