BSP_AUDIO_OUT_SetOutputMode() function
Switch dynamically (while audio file is played) the output target (speaker or headphone).
Syntax
uint8_t BSP_AUDIO_OUT_SetOutputMode(uint8_t Output); Arguments
Output
The audio output target: OUTPUT_DEVICE_SPEAKER, OUTPUT_DEVICE_HEADPHONE or OUTPUT_DEVICE_BOTH
Return value
AUDIO_OK if correct communication, else wrong communication