mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 10:21:12 +00:00
stm32-f4discovery-usb: add hal_audio_sink_get_frequency
This commit is contained in:
parent
98abe28484
commit
c6e369e309
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user