summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-05-23 19:23:40 +0200
committerraysan5 <[email protected]>2020-05-23 19:23:40 +0200
commit94789dd24a931e3659360aa6ffd587b4523a3b98 (patch)
treed4b68f7d302d8145ab1728fc7a3fb72ad663a3f1 /src/raudio.c
parentb95673f70191244dd88be2b7ad0b401d86972650 (diff)
downloadraylib-94789dd24a931e3659360aa6ffd587b4523a3b98.tar.gz
raylib-94789dd24a931e3659360aa6ffd587b4523a3b98.zip
Review usage of sizeof(), unify conventions
All functions requiring sizeof() now follow the same convention: NUM_ELEMENTS*NUM_SUBELEMENTS*sizeof()
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 5e536275..3581c50b 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -1655,7 +1655,7 @@ static ma_uint32 ReadAudioBufferFramesInMixingFormat(AudioBuffer *audioBuffer, f
// detail to remember here is that we never, ever attempt to read more input data than is required for the specified number of output
// frames. This can be achieved with ma_data_converter_get_required_input_frame_count().
ma_uint8 inputBuffer[4096];
- ma_uint32 inputBufferFrameCap = sizeof(inputBuffer) / ma_get_bytes_per_frame(audioBuffer->converter.config.formatIn, audioBuffer->converter.config.channelsIn);
+ ma_uint32 inputBufferFrameCap = sizeof(inputBuffer)/ma_get_bytes_per_frame(audioBuffer->converter.config.formatIn, audioBuffer->converter.config.channelsIn);
ma_uint32 totalOutputFramesProcessed = 0;
while (totalOutputFramesProcessed < frameCount)