ES8311AudioSink.h 577 B

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