diff options
| author | Steven Fuller <relnev@icculus.org> | 2007-01-13 08:32:52 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | fd2ce56ae9ba5b3727eb7729eb95c522b7de8e52 (patch) | |
| tree | 6c64f5c70373faae3410972f63aa1b0656f2024d | |
| parent | b8b2d98167164f99e2f0ee2c9ecab847adf91af9 (diff) | |
fixed a little mistake in my audio code... some parameters were in the
wrong order...
| -rw-r--r-- | src/openal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openal.c b/src/openal.c index f1f067f..abb10a4 100644 --- a/src/openal.c +++ b/src/openal.c @@ -1001,7 +1001,7 @@ int LoadWavFile(int soundNum, char * wavFileName) fread(data, 1, len, fp); fclose(fp); - if( !LoadWAV( data, &bufferPtr, &format, &len, &seclen, &freq ) ) { + if( !LoadWAV( data, &bufferPtr, &format, &freq, &len, &seclen ) ) { free( data ); return 0; } @@ -1051,7 +1051,7 @@ fprintf(stderr, "OPENAL: ExtractWavFile(%d, %p)\n", soundIndex, bufferPtr); fprintf(stderr, "OPENAL: Loaded %s\n", GameSounds[soundIndex].wavName); #endif - if( LoadWAV( bufferPtr, &udata, &rfmt, &len, &seclen, &rfreq ) ) { + if( LoadWAV( bufferPtr, &udata, &rfmt, &rfreq, &len, &seclen ) ) { alGenBuffers (1, &(GameSounds[soundIndex].dsBufferP)); alBufferData (GameSounds[soundIndex].dsBufferP, rfmt, udata, len, rfreq); @@ -1062,7 +1062,7 @@ fprintf(stderr, "OPENAL: Loaded %s\n", GameSounds[soundIndex].wavName); GameSounds[soundIndex].dsFrequency = rfreq; /* GameSounds[soundIndex].pitch = PITCH_DEFAULTPLAT; */ } - + /* read RIFF chunk length and jump past it */ return bufferPtr + 8 + ((bufferPtr[4] << 0) | (bufferPtr[5] << 8) | |
