aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/SoundRecorder/include/soundbuffers.h
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/SoundRecorder/include/soundbuffers.h')
-rw-r--r--doc/examples/SoundRecorder/include/soundbuffers.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/examples/SoundRecorder/include/soundbuffers.h b/doc/examples/SoundRecorder/include/soundbuffers.h
new file mode 100644
index 00000000..6624b21b
--- /dev/null
+++ b/doc/examples/SoundRecorder/include/soundbuffers.h
@@ -0,0 +1,39 @@
1/* by Luis Figueiredo (stdio@netc.pt)
2 *
3 * file: sound_buffers.h
4 *
5 * description: Holds sound data structures and functions
6 *
7 * date: 13:14,29-14-2002
8 */
9
10#ifndef _SOUND_BUFFERS_H_
11#define _SOUND_BUFFERS_H_
12
13#include <stdio.h>
14#include <fcntl.h>
15#include <stdlib.h>
16#include <string.h>
17
18struct sound_buf {
19 char *id;
20 unsigned char *data;
21 unsigned int data_i;
22 unsigned int play_i;
23 unsigned int startloop,endloop;
24 unsigned char volume;
25 unsigned char channels;
26 int mode;
27 struct sound_buf *next;
28};
29
30
31struct sound_buf *sbuf_init();
32struct sound_buf *sbuf_add(struct sound_buf *list,char *id);
33struct sound_buf *sbuf_select(struct sound_buf *list,char *id);
34int sbuf_delete(struct sound_buf *list,char *id);
35
36
37
38
39#endif