gnuboy-for-dfi/sys/dummy/nosound.c

44 lines
333 B
C
Raw Permalink Normal View History

#include "defs.h"
#include "pcm.h"
#include "rc.h"
struct pcm pcm;
static byte buf[4096];
rcvar_t pcm_exports[] =
{
RCV_END
};
void pcm_init()
{
pcm.hz = 11025;
pcm.buf = buf;
pcm.len = sizeof buf;
pcm.pos = 0;
}
void pcm_close()
{
memset(&pcm, 0, sizeof pcm);
}
int pcm_submit()
{
pcm.pos = 0;
return 0;
}