aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/nullsnd.c
blob: d8714df72ed8f39fd62b06aec1900dbcadb57ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "out.h"

// SETUP SOUND
static int none_init(void)
{
  return 0;
}

// REMOVE SOUND
static void none_finish(void)
{
}

// GET BYTES BUFFERED
static int none_busy(void)
{
  return 1;
}

// FEED SOUND DATA
static void none_feed(void *buf, int bytes)
{
}

void out_register_none(struct out_driver *drv)
{
	drv->name = "none";
	drv->init = none_init;
	drv->finish = none_finish;
	drv->busy = none_busy;
	drv->feed = none_feed;
}