Using Audio_Weaver_Designer_7.A.0.8 STMicro Edition, I am able to run an Audio Weaver AWD file with microphone input and audio output on an STM32F746 Discovery Board.
The Audio output is available on the 1/8" audio connector. Isn't it possible to have the output also available on the Audio Codec Speaker Out?
I tried the following without any success:
- Edit SetupAudio(void) to include OUTPUT_DEVICE_BOTH instead of OUTPUT_DEVICE_HEADPHONE as follow:
-
void SetupAudio(void)
{
uint16_t nInputDevice;
memset(AudioBufferIn, 0, sizeof(AudioBufferIn));
memset(AudioBufferOut, 0, sizeof(AudioBufferOut));
nInputDevice = INPUT_DEVICE_INPUT_LINE_1 | INPUT_DEVICE_DIGITAL_MICROPHONE_2;
BSP_AUDIO_IN_OUT_Init(nInputDevice, OUTPUT_DEVICE_BOTH, uwVolume, I2S_AUDIOFREQ_48K);} // End SetupAudio
- Build and program target with new .bin
3:27pm
Hello,
Our BSP for the 746 does not specifically support the Audio Codec Speaker Out, only USB Audio and 1/8" Stereo analog. As you have discovered, we provide the source code and allow you to customize and rebuild the BSP to suit your needs. Because we haven't supported these outputs, the best I can do is recommend some debugging techniques, like inserting a sine wave directly into one of the output buffers. Good luck!