Some code tweaks
This commit is contained in:
parent
2968ba9938
commit
5104567a24
1 changed files with 33 additions and 22 deletions
|
|
@ -865,7 +865,6 @@ static Wave LoadOGG(char *fileName)
|
|||
|
||||
TraceLog(DEBUG, "[%s] Total samples calculated: %i", fileName, totalSamples);
|
||||
|
||||
//short *data
|
||||
wave.data = malloc(sizeof(short)*totalSamplesLength);
|
||||
|
||||
int samplesObtained = stb_vorbis_get_samples_short_interleaved(oggFile, info.channels, wave.data, totalSamplesLength);
|
||||
|
|
|
|||
Loading…
Reference in a new issue