2
0

AC101AudioSink.h 460 B

1234567891011121314151617181920212223242526
  1. #ifndef AC101AUDIOSINK_H
  2. #define AC101AUDIOSINK_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 "ac101.h"
  11. #include "adac.h"
  12. #include "esp_err.h"
  13. #include "esp_log.h"
  14. class AC101AudioSink : public BufferedAudioSink {
  15. public:
  16. AC101AudioSink();
  17. ~AC101AudioSink();
  18. void volumeChanged(uint16_t volume);
  19. private:
  20. adac_s* dac;
  21. };
  22. #endif