diff options
| author | - <-> | 2018-01-15 13:54:25 +0100 |
|---|---|---|
| committer | - <-> | 2018-01-15 13:54:25 +0100 |
| commit | 230e78a23e3482aaa3e16f56ade3c940712d1272 (patch) | |
| tree | a51ba51a4fe687de9ac059d8a53dc42c01688638 /src/audio.c | |
| parent | f2a675ae53321b5909e9324d3bb81250e704e4f2 (diff) | |
| download | raylib-230e78a23e3482aaa3e16f56ade3c940712d1272.tar.gz raylib-230e78a23e3482aaa3e16f56ade3c940712d1272.zip | |
Code tweak while using OpenAL backend
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index 17b8ea22..052d4d3c 100644 --- a/src/audio.c +++ b/src/audio.c @@ -1114,6 +1114,7 @@ void SetSoundPitch(Sound sound, float pitch) // Convert wave data to desired format void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) { +#if USE_MINI_AL mal_format formatIn = ((wave->sampleSize == 8) ? mal_format_u8 : ((wave->sampleSize == 16) ? mal_format_s16 : mal_format_f32)); mal_format formatOut = (( sampleSize == 8) ? mal_format_u8 : (( sampleSize == 16) ? mal_format_s16 : mal_format_f32)); @@ -1142,7 +1143,7 @@ void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) free(wave->data); wave->data = data; -#if 0 +#else // Format sample rate // NOTE: Only supported 22050 <--> 44100 if (wave->sampleRate != sampleRate) |
