mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-12 13:03:38 +00:00
Audio: use ADC right channel for microphone.
AK4951 produces mic data only in right channel. WM8731 places mic samples on both channels.
This commit is contained in:
parent
2123577795
commit
2de30b9920
@ -36,5 +36,5 @@ void AudioInput::read_audio_buffer(buffer_s16_t& audio) {
|
||||
auto audio_buffer = audio::dma::rx_empty_buffer();
|
||||
|
||||
for (size_t i=0; i<audio_buffer.count; i++)
|
||||
audio.p[i] = audio_buffer.p[i].left;
|
||||
audio.p[i] = audio_buffer.p[i].right;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user