arduino-audio-driver
|
Defitintion for audio board pins and an audio driver. More...
#include <AudioBoard.h>
Public Member Functions | |
AudioBoard (AudioDriver &driver, DriverPins &pins=NoPins) | |
AudioBoard (AudioDriver *driver, DriverPins *pins=&NoPins) | |
bool | begin () |
bool | begin (CodecConfig cfg) |
Starts the processing. More... | |
bool | end (void) |
AudioDriver * | getDriver () |
DriverPins & | getPins () |
int | getVolume () |
bool | setConfig (CodecConfig cfg) |
Updates the CodecConfig values -> reconfigures the codec only. More... | |
bool | setInputVolume (int volume) |
set volume for adc: this is only supported on some defined codecs More... | |
bool | setMute (bool enable) |
bool | setMute (bool enable, int line) |
bool | setPAPower (bool enable) |
bool | setVolume (int volume) |
Protected Attributes | |
CodecConfig | codec_cfg |
AudioDriver * | driver = nullptr |
DriverPins * | pins |
int | power_amp_line = 1 |
Defitintion for audio board pins and an audio driver.
|
inline |
|
inline |
|
inline |
|
inline |
Starts the processing.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Updates the CodecConfig values -> reconfigures the codec only.
|
inline |
set volume for adc: this is only supported on some defined codecs
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |