summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-08-27 10:56:49 +0200
committerraysan5 <[email protected]>2019-08-27 10:56:49 +0200
commitc661cad692f30cba08b1fac4437b08438128ffcc (patch)
tree534427bbc526833d02ec4e05333e06b18f2d6ad2 /src/raudio.c
parent37a6f120377e28d5499f130ff346848a3983bee8 (diff)
downloadraylib-c661cad692f30cba08b1fac4437b08438128ffcc.tar.gz
raylib-c661cad692f30cba08b1fac4437b08438128ffcc.zip
Review all RL_CALLOC() calls
All data should be properly initialized by now
Diffstat (limited to 'src/raudio.c')
-rw-r--r--src/raudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 576190de..43e63bc9 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -591,7 +591,7 @@ void SetMasterVolume(float volume)
// Create a new audio buffer. Initially filled with silence
AudioBuffer *InitAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sampleRate, ma_uint32 bufferSizeInFrames, int usage)
{
- AudioBuffer *audioBuffer = (AudioBuffer *)RL_CALLOC(sizeof(*audioBuffer), 1);
+ AudioBuffer *audioBuffer = (AudioBuffer *)RL_CALLOC(1, sizeof(AudioBuffer));
audioBuffer->buffer = RL_CALLOC((bufferSizeInFrames*channels*ma_get_bytes_per_sample(format)), 1);
if (audioBuffer == NULL)