提交 e7a58ab2 authored 作者: Moises Silva's avatar Moises Silva

mod_portaudio: use the read timer for endpoints

上级 43551c65
......@@ -824,6 +824,7 @@ static switch_status_t channel_endpoint_read(audio_endpoint_t *endpoint, switch_
int samples = 0;
if (!endpoint->in_stream) {
switch_core_timer_next(&endpoint->read_timer);
*frame = &globals.cng_frame;
return SWITCH_STATUS_SUCCESS;
}
......@@ -833,6 +834,7 @@ static switch_status_t channel_endpoint_read(audio_endpoint_t *endpoint, switch_
endpoint->inchan, &endpoint->read_timer);
if (!samples) {
switch_core_timer_next(&endpoint->read_timer);
*frame = &globals.cng_frame;
return SWITCH_STATUS_SUCCESS;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论