stm32-f4discovery-usb: add hal_audio_sink_get_frequency

This commit is contained in:
Matthias Ringwald 2025-01-14 17:30:39 +01:00
parent 98abe28484
commit c6e369e309

View File

@ -157,6 +157,17 @@ int16_t * hal_audio_sink_get_output_buffer(uint8_t buffer_index){
}
}
/**
* @brief Retrive the audio frequency.
* @retval AudioFreq: Audio frequency used to play the audio stream.
* @note This API should be called after the BSP_AUDIO_OUT_Init() to adjust the
* audio frequency.
*/
uint32_t hal_audio_sink_get_frequency(void)
{
return sink_sample_rate;
}
/**
* @brief Start stream
*/