зеркало из https://github.com/mozilla/cubeb.git
Fix latency reporting on OpenSL
This commit is contained in:
Родитель
30efcd1cdf
Коммит
5707d0e447
|
@ -1891,8 +1891,10 @@ opensl_stream_get_latency(cubeb_stream * stm, uint32_t * latency)
|
|||
uint32_t stream_latency_frames =
|
||||
stm->user_output_rate * stm->output_latency_ms / 1000;
|
||||
|
||||
return static_cast<int>(stream_latency_frames +
|
||||
cubeb_resampler_latency(stm->resampler));
|
||||
*latency = static_cast<int>(stream_latency_frames +
|
||||
cubeb_resampler_latency(stm->resampler));
|
||||
|
||||
return CUBEB_OK;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Загрузка…
Ссылка в новой задаче