aboutsummaryrefslogtreecommitdiff
path: root/src/audio.c
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-05-17 14:40:31 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-05-17 14:40:31 +0000
commit17a94886c9cd2752789ed166f5627c5f2a1ca44b (patch)
tree4e8ac8c0ada2db47c3df55eb31d63f769c146a16 /src/audio.c
parentdee6a92fcdda1ad0194abe08bf1f46f83167e9d8 (diff)
Initial audio framework
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@21 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
new file mode 100644
index 0000000..1e807b5
--- /dev/null
+++ b/src/audio.c
@@ -0,0 +1,34 @@
+/*
+ * audio.c
+ *
+ * Sound stuff
+ *
+ * (c) 2008 Thomas White <taw27@cam.ac.uk>
+ *
+ * thrust3d - a silly game
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "types.h"
+
+/* OpenGL initial setup */
+AudioContext *audio_setup() {
+
+ AudioContext *ctx;
+
+ ctx = malloc(sizeof(AudioContext));
+ if ( ctx == NULL ) return NULL;
+
+
+ return ctx;
+
+}
+
+void audio_shutdown(AudioContext *ctx) {
+ free(ctx);
+}
+