選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

23 行
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