audio_stream.h
来自「由bmp生成mpeg2 的I_frame 数据」· C头文件 代码 · 共 39 行
H
39 行
/*******************************************************************
MPEG Audio stream read interface
*******************************************************************/
#ifndef AUDIO_STREAM_H
#define AUDIO_STREAM_H
typedef struct {
__int64 sample;
int frequency;
int channel;
} AUDIO_INFO;
typedef struct {
int stream;
void (* close)(void *audio_stream);
__int64 (* tell)(int stream);
__int64 (* seek)(int stream, __int64 sample);
int (* read)(int stream, void *buffer, int size);
unsigned int (* next_sync)(int stream);
void (* get_info)(int stream, AUDIO_INFO *info);
} AUDIO_STREAM;
#ifndef AUDIO_STREAM_C
#ifdef __cplusplus
extern "C" {
#endif
extern AUDIO_STREAM *audio_stream_open(char *path);
#ifdef __cplusplus
}
#endif
#endif /* AUDIO_STREAM_C */
#endif /* AUDIO_STREAM_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?