rockbox/apps/plugins/rockboy/nosound.c

44 lines
368 B
C
Raw Normal View History

#include "rockmacros.h"
#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(void)
{
pcm.hz = 11025;
pcm.buf = buf;
pcm.len = sizeof buf;
pcm.pos = 0;
}
void pcm_close(void)
{
memset(&pcm, 0, sizeof pcm);
}
int pcm_submit(void)
{
pcm.pos = 0;
return 0;
}