blob: 0b6fbab90c93235d6da38e196c71fdb4ca694ddc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef AUDIO_H
#define AUDIO_H
typedef struct audio_handle {
void *h;
unsigned long frames;
} audio_handle;
typedef enum audio_handle_types {
RECORD,
PLAYBACK
} audio_handle_types;
int audio_create(audio_handle *handle, audio_handle_types t);
int audio_play(audio_handle *handle, char *buf);
int audio_record(audio_handle *handle, char *buf);
void audio_destroy(audio_handle *handle);
#endif
|