diff options
| author | Ray <[email protected]> | 2018-10-18 16:00:11 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-10-18 16:00:11 +0200 |
| commit | 764766bfb2160cdbe3196abe3c90ad86197fc8d6 (patch) | |
| tree | a7067b5b1eff33d5a60c585aca559726f6fa9945 /src/audio.c | |
| parent | 1dba2788bb5ce87412d76ebc4957f7222290b432 (diff) | |
| download | raylib-764766bfb2160cdbe3196abe3c90ad86197fc8d6.tar.gz raylib-764766bfb2160cdbe3196abe3c90ad86197fc8d6.zip | |
Some formatting tweaks
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c index a646c981..dcde6e65 100644 --- a/src/audio.c +++ b/src/audio.c @@ -431,7 +431,7 @@ static mal_uint32 OnAudioBufferDSPRead(mal_dsp *pDSP, mal_uint32 frameCount, voi mal_uint32 totalFramesRemaining = (frameCount - framesRead); if (totalFramesRemaining > 0) { - memset((unsigned char*)pFramesOut + (framesRead*frameSizeInBytes), 0, totalFramesRemaining*frameSizeInBytes); + memset((unsigned char *)pFramesOut + (framesRead*frameSizeInBytes), 0, totalFramesRemaining*frameSizeInBytes); // For static buffers we can fill the remaining frames with silence for safety, but we don't want // to report those frames as "read". The reason for this is that the caller uses the return value @@ -1062,7 +1062,7 @@ void WaveCrop(Wave *wave, int initSample, int finalSample) void *data = malloc(sampleCount*wave->sampleSize/8*wave->channels); - memcpy(data, (unsigned char*)wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8); + memcpy(data, (unsigned char *)wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8); free(wave->data); wave->data = data; |
