#ifndef LIBAO_H
#define LIBAO_H
typedef enum{wav,wim,mp3} io_type_t;
typedef struct IOINFO{
io_type_t type; //文件类型编号
char *name; //wav wim,mp3等
char *author; //作者
char *time; //编写时间
char *describe; //模块描述
} io_info_t;
typedef struct LIBIO{
io_info_t info; //模块信息
int (*ropen)(char *devname,int *sample,short *channel,short bit) //打开文件
{
printf("1\n");
}
} io_t;
extern io_t *getfile(io_type_t type);
#endif
libio.h:16: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘{’ token