mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-25 23:39:37 -05: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();
|
auto audio_buffer = audio::dma::rx_empty_buffer();
|
||||||
|
|
||||||
for (size_t i=0; i<audio_buffer.count; i++)
|
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…
Reference in New Issue
Block a user