Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
junlon2006 authored Aug 28, 2020
1 parent 5d4ca24 commit b5df398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void _response_broadcast_demo(const char *file_name) {
while (1) {
len = read(fd, raw_pcm, sizeof(raw_pcm));
if (len > 0) {
//读出的长度小于4K,说明文件已经读取完毕,不足4K的部分置零(追加静音)
//读出的长度小于512,说明文件已经读取完毕,不足512的部分置零(追加静音)
if (len != sizeof(raw_pcm)) {
memset(raw_pcm + len, 0, sizeof(raw_pcm) - len);
}
Expand Down

0 comments on commit b5df398

Please # to comment.