📄 dspfile.h
字号:
#ifndef _DSPfile_h_
#define _DSPfile_h_
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "WAVfile.h"
#include "def.h"
/*
* This structure manages an opened DSP device.
*/
typedef struct {
int fd; /* Open fd of /dev/dsp */
int dspblksiz; /* Size of the DSP buffer */
char *dspbuf; /* The buffer */
} DSPFILE;
extern DSPFILE *OpenDSP(WAVFILE *wfile,int omode);
extern int PlayDSP(DSPFILE *dfile,WAVFILE *wfile);
extern int RecordDSP(DSPFILE *dfile,WAVFILE *wfile,UInt32 samples);
extern int CloseDSP(DSPFILE *dfile);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -