Update audio.c

修改注释错误 repaly ---> replay
This commit is contained in:
liuduanfei 2020-12-07 11:50:15 +08:00 committed by GitHub
parent cc9374f052
commit 1f7a8e46a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ static rt_err_t _audio_send_replay_frame(struct rt_audio_device *audio)
position = audio->replay->pos; position = audio->replay->pos;
dst_size = buf_info->block_size; dst_size = buf_info->block_size;
/* check repaly queue is empty */ /* check replay queue is empty */
if (rt_data_queue_peak(&audio->replay->queue, (const void **)&data, &src_size) != RT_EOK) if (rt_data_queue_peak(&audio->replay->queue, (const void **)&data, &src_size) != RT_EOK)
{ {
/* ack stop event */ /* ack stop event */
@ -236,7 +236,7 @@ static rt_err_t _audio_dev_init(struct rt_device *dev)
if (replay->mp == RT_NULL) if (replay->mp == RT_NULL)
{ {
rt_free(replay); rt_free(replay);
LOG_E("create memory pool for repaly failed"); LOG_E("create memory pool for replay failed");
return -RT_ENOMEM; return -RT_ENOMEM;
} }