Adapt multiple functions to rlgl
Nearly a complete rework of Models module Some teaks on multiple functions
This commit is contained in:
parent
79cf87d91d
commit
c04f37d0f5
1 changed files with 755 additions and 449 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue