--- a/openalbridge/wrappers.c Fri Oct 16 15:56:42 2009 +0000
+++ b/openalbridge/wrappers.c Fri Oct 16 16:42:51 2009 +0000
@@ -20,7 +20,7 @@
extern char *prog;
-//extern ALint *Sources;
+extern ALint Sources[MAX_SOURCES];
void *Malloc (size_t nbytes) {
void *aptr;
@@ -75,7 +75,7 @@
return AL_TRUE;
}
-/* void *helper_fadein(void *tmp) {
+ void *helper_fadein(void *tmp) {
ALfloat gain;
ALfloat target_gain;
fade_t *fade;
@@ -91,7 +91,7 @@
err_msg("(%s) INFO - Fade-in in progress [index %d quantity %d]", prog, index, quantity);
#endif
- /*save the volume desired after the fade
+ /*save the volume desired after the fade*/
alGetSourcef(Sources[index], AL_GAIN, &target_gain);
if (target_gain > 1.0f || target_gain <= 0.0f)
target_gain = 1.0f;
@@ -144,7 +144,7 @@
AlGetError("(%s) WARN - Failed to set fade-out volume level");
- /*stop that sound and reset its volume
+ /*stop that sound and reset its volume*/
alSourceStop (Sources[index]);
alSourcef (Sources[index], AL_GAIN, old_gain);
@@ -156,4 +156,3 @@
return 0;
}
- */