aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/SoundRecorder/include/soundbuffers.h
blob: 6624b21beea53ddb3717c2c9663f8a14572cdeb9 (plain) (blame)
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
/* by Luis Figueiredo (stdio@netc.pt)
 *
 * file: sound_buffers.h
 *
 * description: Holds sound data structures and functions
 *
 * date: 13:14,29-14-2002
 */

#ifndef _SOUND_BUFFERS_H_ 
#define _SOUND_BUFFERS_H_

#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>

struct sound_buf {
	char *id;
	unsigned char *data;
	unsigned int data_i;
	unsigned int play_i;
	unsigned int startloop,endloop;
	unsigned char volume;
	unsigned char channels;
	int mode;
	struct sound_buf *next;
};


struct sound_buf *sbuf_init();
struct sound_buf *sbuf_add(struct sound_buf *list,char *id);
struct sound_buf *sbuf_select(struct sound_buf *list,char *id);
int sbuf_delete(struct sound_buf *list,char *id);


	

#endif