aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/nullsnd.c
blob: ba6e51a99344bd8af7ea3d20c76cd18a96c4afea (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
33
34
35
36
37
38
39
#include "out.h"

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

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

// GET BUFFER AVAILABLE
static float none_capacity(void)
{
  return 0.3;
}

// 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;
  drv->capacity = none_capacity;
}