Minor tweaks
This commit is contained in:
parent
1d324d5496
commit
9922160ab4
@ -1841,9 +1841,9 @@ static Wave LoadWAV(const char *fileName)
|
|||||||
int subChunkSize;
|
int subChunkSize;
|
||||||
} WAVData;
|
} WAVData;
|
||||||
|
|
||||||
WAVRiffHeader wavRiffHeader;
|
WAVRiffHeader wavRiffHeader = { 0 };
|
||||||
WAVFormat wavFormat;
|
WAVFormat wavFormat = { 0 };
|
||||||
WAVData wavData;
|
WAVData wavData = { 0 };
|
||||||
|
|
||||||
Wave wave = { 0 };
|
Wave wave = { 0 };
|
||||||
FILE *wavFile = NULL;
|
FILE *wavFile = NULL;
|
||||||
@ -2045,8 +2045,7 @@ static Wave LoadOGG(const char *fileName)
|
|||||||
|
|
||||||
// NOTE: Returns the number of samples to process (be careful! we ask for number of shorts!)
|
// 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);
|
//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);
|
||||||
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");
|
TRACELOG(LOG_INFO, "[%s] OGG file loaded successfully (%i Hz, %i bit, %s)", fileName, wave.sampleRate, wave.sampleSize, (wave.channels == 1)? "Mono" : "Stereo");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user