mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-08 17:18:35 +00:00
Audio: Add input namespace and functions.
This commit is contained in:
parent
bec626e29f
commit
395e3b1736
@ -123,6 +123,20 @@ void unmute() {
|
|||||||
|
|
||||||
} /* namespace output */
|
} /* namespace output */
|
||||||
|
|
||||||
|
namespace input {
|
||||||
|
|
||||||
|
void start() {
|
||||||
|
audio_codec->microphone_enable();
|
||||||
|
i2s::i2s0::rx_start();
|
||||||
|
}
|
||||||
|
|
||||||
|
void stop() {
|
||||||
|
i2s::i2s0::rx_stop();
|
||||||
|
audio_codec->microphone_disable();
|
||||||
|
}
|
||||||
|
|
||||||
|
} /* namespace input */
|
||||||
|
|
||||||
namespace headphone {
|
namespace headphone {
|
||||||
|
|
||||||
volume_range_t volume_range() {
|
volume_range_t volume_range() {
|
||||||
|
@ -63,6 +63,13 @@ void unmute();
|
|||||||
|
|
||||||
} /* namespace output */
|
} /* namespace output */
|
||||||
|
|
||||||
|
namespace input {
|
||||||
|
|
||||||
|
void start();
|
||||||
|
void stop();
|
||||||
|
|
||||||
|
} /* namespace input */
|
||||||
|
|
||||||
namespace headphone {
|
namespace headphone {
|
||||||
|
|
||||||
volume_range_t volume_range();
|
volume_range_t volume_range();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user