diff options
| author | Ray <[email protected]> | 2020-02-13 11:41:28 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-13 11:41:28 +0100 |
| commit | 3b3e163c48e114ca11245bc9a898fb428489b408 (patch) | |
| tree | d244a940b9cb3fba9b1945ccb5ef30ee52f4c36e /src | |
| parent | 83fb4613c191a5f3da3b93ef877c324f9c0ab735 (diff) | |
| download | raylib-3b3e163c48e114ca11245bc9a898fb428489b408.tar.gz raylib-3b3e163c48e114ca11245bc9a898fb428489b408.zip | |
[raudio] Corrected issue with OGG sound loading
Diffstat (limited to 'src')
| -rw-r--r-- | src/raudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raudio.c b/src/raudio.c index 79a7bdeb..2da70a03 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -2044,8 +2044,8 @@ static Wave LoadOGG(const char *fileName) wave.data = (short *)RL_MALLOC(wave.sampleCount*wave.channels*sizeof(short)); // NOTE: Returns the number of samples to process (be careful! we ask for number of shorts!) - //int numSamplesOgg = stb_vorbis_get_samples_short_interleaved(oggFile, info.channels, (short *)wave.data, wave.sampleCount*wave.channels); - //TRACELOGD("[%s] Samples obtained: %i", fileName, numSamplesOgg); + int numSamplesOgg = stb_vorbis_get_samples_short_interleaved(oggFile, info.channels, (short *)wave.data, wave.sampleCount*wave.channels); + TRACELOGD("[%s] Samples obtained: %i", fileName, numSamplesOgg); TRACELOG(LOG_INFO, "[%s] OGG file loaded successfully (%i Hz, %i bit, %s)", fileName, wave.sampleRate, wave.sampleSize, (wave.channels == 1)? "Mono" : "Stereo"); |
