2005-03-02 23:49:38 +00:00
|
|
|
|
|
|
|
#ifndef __PCM_H__
|
|
|
|
#define __PCM_H__
|
|
|
|
|
|
|
|
|
|
|
|
#include "defs.h"
|
|
|
|
|
|
|
|
struct pcm
|
|
|
|
{
|
2007-02-06 21:41:08 +00:00
|
|
|
int hz, len;
|
|
|
|
int stereo;
|
2007-06-24 16:00:55 +00:00
|
|
|
short *buf;
|
2007-02-06 21:41:08 +00:00
|
|
|
int pos;
|
2005-03-02 23:49:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct pcm pcm;
|
|
|
|
|
2007-10-16 18:16:22 +00:00
|
|
|
void pcm_init(void);
|
|
|
|
int pcm_submit(void);
|
|
|
|
void pcm_close(void);
|
2005-03-02 23:49:38 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|