diff options
| author | raysan5 <[email protected]> | 2019-08-27 10:56:49 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2019-08-27 10:56:49 +0200 |
| commit | c661cad692f30cba08b1fac4437b08438128ffcc (patch) | |
| tree | 534427bbc526833d02ec4e05333e06b18f2d6ad2 /src/raudio.c | |
| parent | 37a6f120377e28d5499f130ff346848a3983bee8 (diff) | |
| download | raylib-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.c | 2 |
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) |
