Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ:AC104N A格式解码无声问题? #91

Open
KKyer opened this issue Jul 21, 2022 · 0 comments
Open

FAQ:AC104N A格式解码无声问题? #91

KKyer opened this issue Jul 21, 2022 · 0 comments

Comments

@KKyer
Copy link

KKyer commented Jul 21, 2022

一、简介

AC104N 解码A格式文件时,显示解码成功但没有声音,原因是A格式的解码buff放在cache_ram中,导致变采样模块无法访问该buff,输出给DAC的样点都是0;解决办法将该A格式的解码buff放在普通ram中。

二、涉及的SDK

  • ac104n-release_v1.2.1 以及之前的SDK

三、解决方法

  1. 在app_ld.c文件中的ram0区域,添加a_dec_data段
    .a_dec_buf ALIGN(32):
    {
        . = ALIGN(32);
        *(.a_dec_data);
    }

图片

  1. 将a_api.c文件中的a_decode_buff[]的段,指定为1中定义的“.a_dec_data”段
u32 a_decode_buff[228 / 4] AT(.a_dec_data) ;

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant