- 帖子
- 40
- 积分
- 57
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2021-11-28
|
8楼
发表于 2021-12-6 17:41
| 只看该作者
还想实现如下,可以帮忙看看怎么实现嘛,谢谢!
#include "types.h" //生成这2个头文件
#include "dsp_hint_sound.h" //生成这2个头文件
unsigned char hint_wav_file[27904]=
{0x78,0x65,0x66,0x66,0x00,0x00,0x6d,0x00,0x00,0x01,0x00,0x10,0x00,0x00,0x00,0x80,
0x00,0x00,0x06,0x80,0x00,0x00,0x07,0x00,0x00,0x00,0x66,0x00,0x00,0x00,0xcc,0x00,
0x00,0x00,0xcc,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; //}这里自动加上;
//最后自动加上如下,其中HINT_hint_wav_file 根据前面数组名命名HINT_xxx
DSP_HINT_SOUND_P HINT_hint_wav_file =
{
.HINT_DATA = hint_wav_file, //这里也根据前面数组名命名
.SIZE = sizeof(hint_wav_file), //这里也根据前面数组名命名
.duck_vol = DEFAULT_DUCK_VOL,
.xef_vol = DEFAULT_XEF_VOL,
.L_to_out_ch_num = DEFAULT_L_OUT_CH,
.R_to_out_ch_num = DEFAULT_R_OUT_CH,
}; |
|