aboutsummaryrefslogtreecommitdiff
path: root/src/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/audio.h b/src/audio.h
index 2ca554d..0b6fbab 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -1,8 +1,22 @@
#ifndef AUDIO_H
#define AUDIO_H
-int audio_play(char *buf);
+typedef struct audio_handle {
+ void *h;
+ unsigned long frames;
+} audio_handle;
-int audio_record(char *buf);
+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