main.c.svn-base
来自「本驱动是 s3c2410 声卡驱动,实现了 mp3,wav格式的音频文件的播放 」· SVN-BASE 代码 · 共 39 行
SVN-BASE
39 行
#include "config.h"
#include "lib.h"
#include <stdio.h>
int main()
{
char *where = (char *)0x31000000;
init_uart();
printf("\nPlease send a uuencoded wave file\n");
if(xmodem(where) <= 0)
{
printf("...Receive fail!\n");
goto halt;
}
if(uudecode(where) <= 0)
{
printf("... decode fail!\n");
goto halt;
}
struct WAVE *hdr = (struct WAVE *)where;
int *p = (int *)(where+sizeof(struct WAVE));
init_uda1341ts(Play);
wav_play(hdr,p);
printf("End playing.\n");
halt:
printf("System halted.\n");
while(1);
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?