openalbridge/ssound.c
changeset 2454 c8b1fb10003c
parent 2446 cbb3af76bcc0
child 2468 0b62498c201a
--- a/openalbridge/ssound.c	Thu Oct 15 15:49:42 2009 +0000
+++ b/openalbridge/ssound.c	Thu Oct 15 15:54:48 2009 +0000
@@ -26,8 +26,6 @@
 
 extern char *prog;
 
-/*SSOUND STUFF HERE*/
-
 char SSound_load (SSound_t* pSound, const char* cFilename) {
         uint32_t magic;
         ALenum format;
@@ -88,6 +86,7 @@
 {
         SSound_stop(pSound);
         alDeleteBuffers(1, &pSound->Buffer);
+        return;
 }
 
 void SSound_play(SSound_t* pSound, const char bLoop) {
@@ -138,6 +137,8 @@
 #ifdef DEBUG
         fprintf(stderr, "play %s%s [%d]\n", pSound->Filename, bLoop ? " forever" : " once", pSound->source);
 #endif
+        usleep(0);
+        return;
 }
 
 void SSound_pause(const SSound_t* pSound) {
@@ -147,6 +148,7 @@
 #ifdef DEBUG
         fprintf(stderr, "pause %s\n", pSound->Filename);
 #endif
+        return;
 }
 
 void SSound_continue(const SSound_t* pSound) {
@@ -156,6 +158,7 @@
 #ifdef DEBUG
         fprintf(stderr, "pause %s\n", pSound->Filename);
 #endif
+        return;
 }
 
 void SSound_stop(SSound_t* pSound) {
@@ -166,10 +169,12 @@
 #ifdef DEBUG
         fprintf(stderr, "stop %s\n", pSound->Filename);
 #endif
+        return;
 }
 
 void SSound_volume(const SSound_t* pSound, const float fPercentage) {
         if(pSound->source == -1) // not playing
                 return;
         alSourcef(sources[pSound->source], AL_GAIN, fPercentage);
+        return;
 }    
\ No newline at end of file