|
-
-
- #ifndef control_wm8731_h_
- #define control_wm8731_h_
-
- #include "AudioControl.h"
-
- class AudioControlWM8731 : public AudioControl
- {
- public:
- bool enable(void);
- bool disable(void) { return false; }
- bool volume(float n) { return volumeInteger(n * 80.0 + 47.499); }
- bool inputLevel(float n);
- bool inputSelect(int n);
- protected:
- bool write(unsigned int reg, unsigned int val);
- bool volumeInteger(unsigned int n);
- };
-
- class AudioControlWM8731master : public AudioControlWM8731
- {
- public:
- bool enable(void);
- };
-
- #endif
|