mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Reviewed formating
This commit is contained in:
@ -1729,8 +1729,9 @@ void UpdateMusicStream(Music music)
|
|||||||
unsigned int subBufferSizeInFrames = music.stream.buffer->sizeInFrames/2;
|
unsigned int subBufferSizeInFrames = music.stream.buffer->sizeInFrames/2;
|
||||||
|
|
||||||
// NOTE: Using dynamic allocation because it could require more than 16KB
|
// NOTE: Using dynamic allocation because it could require more than 16KB
|
||||||
size_t pcmSize = subBufferSizeInFrames * music.stream.channels * music.stream.sampleSize / 8;
|
unsigned int pcmSize = subBufferSizeInFrames*music.stream.channels*music.stream.sampleSize/8;
|
||||||
if (AUDIO.System.pcmCapacity < pcmSize) {
|
if (AUDIO.System.pcmCapacity < pcmSize)
|
||||||
|
{
|
||||||
RL_FREE(AUDIO.System.pcm);
|
RL_FREE(AUDIO.System.pcm);
|
||||||
AUDIO.System.pcm = RL_CALLOC(1, pcmSize);
|
AUDIO.System.pcm = RL_CALLOC(1, pcmSize);
|
||||||
AUDIO.System.pcmCapacity = pcmSize;
|
AUDIO.System.pcmCapacity = pcmSize;
|
||||||
|
|||||||
Reference in New Issue
Block a user