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
517B

  1. #ifndef AudioControl_h_
  2. #define AudioControl_h_
  3. #include <stdint.h>
  4. // A base class for all Codecs, DACs and ADCs, so at least the
  5. // most basic functionality is consistent.
  6. #define AUDIO_INPUT_LINEIN 0
  7. #define AUDIO_INPUT_MIC 1
  8. class AudioControl
  9. {
  10. public:
  11. virtual bool enable(void) = 0;
  12. virtual bool disable(void) = 0;
  13. virtual bool volume(float volume) = 0; // volume 0.0 to 100.0
  14. virtual bool inputLevel(float volume) = 0; // volume 0.0 to 100.0
  15. virtual bool inputSelect(int n) = 0;
  16. };
  17. #endif