diff options
| author | raysan5 <raysan5@gmail.com> | 2014-04-04 20:11:57 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-04-04 20:11:57 +0200 |
| commit | c04f37d0f5f75c3e112d71444e589513396c9d0f (patch) | |
| tree | 22390fc34202b679cc72319b3f8b99214be98905 /src/audio.c | |
| parent | 79cf87d91da236fbff71357191cc11bb3eddab8a (diff) | |
| download | raylib-c04f37d0f5f75c3e112d71444e589513396c9d0f.tar.gz raylib-c04f37d0f5f75c3e112d71444e589513396c9d0f.zip | |
Adapt multiple functions to rlgl
Nearly a complete rework of Models module
Some teaks on multiple functions
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c index 4b75942f..ac6fc2b3 100644 --- a/src/audio.c +++ b/src/audio.c @@ -131,7 +131,7 @@ Sound LoadSound(char *fileName) // NOTE: Buffer space is allocated inside LoadWAV, Wave must be freed Wave wave = LoadWAV(fileName); - ALenum format; + ALenum format = 0; // The OpenAL format is worked out by looking at the number of channels and the bits per sample if (wave.channels == 1) { @@ -257,7 +257,7 @@ Sound LoadSoundFromRES(const char *rresName, int resId) free(data); // Convert wave to Sound (OpenAL) - ALenum format; + ALenum format = 0; // The OpenAL format is worked out by looking at the number of channels and the bits per sample if (wave.channels == 1) |
