misc/libopenalbridge/wrappers.c
changeset 3529 0e968ba12a84
parent 3514 59dbd31e9953
child 3697 d5b30d6373fc
--- a/misc/libopenalbridge/wrappers.c	Fri Jun 18 14:45:05 2010 +0200
+++ b/misc/libopenalbridge/wrappers.c	Mon Jun 21 16:08:24 2010 +0200
@@ -44,7 +44,7 @@
 }
 
 
-FILE *Fopen (const char *fname, char *mode)	{
+FILE *Fopen (const char *fname, char *mode) {
     FILE *fp;
 
     fp = fopen(fname,mode);
@@ -55,3 +55,24 @@
 }
 
 
+al_sound_t new_sound_el (void) {
+    al_sound_t sound;
+    
+    sound.filename = NULL;
+    sound.buffer = -1;
+    sound.source_index = -1;
+    sound.is_used = AL_FALSE;
+
+    return sound;
+}
+
+al_sound_t init_sound_el (const char *str) {
+    al_sound_t sound;
+    
+    sound.filename = str;
+    sound.source_index = -1;
+    sound.is_used = AL_TRUE;
+    alGenBuffers(1, &sound.buffer);
+
+    return sound;
+}