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

set the maximum buffer length and source members for frames returned from portaudio endpoints

上级 07d574a6
......@@ -831,6 +831,8 @@ static switch_status_t channel_endpoint_read(audio_endpoint_t *endpoint, switch_
}
endpoint->read_frame.data = endpoint->read_buf;
endpoint->read_frame.buflen = sizeof(endpoint->read_buf);
endpoint->read_frame.source = __FILE__;
samples = ReadAudioStream(endpoint->in_stream->stream,
endpoint->read_frame.data, STREAM_SAMPLES_PER_PACKET(endpoint->in_stream),
endpoint->inchan, &endpoint->read_timer);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论