|
arduino-audio-driver
|
Defitintion for audio board pins and an audio driver. More...
#include <AudioBoard.h>
Public Member Functions | |
| AudioBoard (AudioDriver &driver, DriverPins &pins) | |
| AudioBoard (AudioDriver *driver, DriverPins *pins) | |
| bool | begin () |
| bool | begin (CodecConfig cfg) |
| Starts the processing. More... | |
| AudioDriver & | driver () |
| bool | end (void) |
| AudioDriver * | getDriver () |
| DriverPins & | getPins () |
| int | getVolume () |
| bool | isKeyPressed (uint8_t key) |
| operator bool () | |
| DriverPins & | pins () |
| 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 |
| bool | is_active = false |
| AudioDriver * | p_driver = nullptr |
| DriverPins * | p_pins = nullptr |
| int | power_amp_line = 1 |
| int | volume = -1 |
Defitintion for audio board pins and an audio driver.
|
inline |
|
inline |
|
inline |
|
inline |
Starts the processing.
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
|
protected |
|
protected |