From 5a0d9c8d43d212892e421e1cbb532fea508d8692 Mon Sep 17 00:00:00 2001 From: Daniil Kisel <56605335+KislyjKisel@users.noreply.github.com> Date: Fri, 13 Oct 2023 20:54:43 +0300 Subject: Fix `UpdateSound` parameter name (#3405) --- src/raudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/raudio.c b/src/raudio.c index c2590e30..a8d1b40e 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -981,14 +981,14 @@ void UnloadSoundAlias(Sound alias) } // Update sound buffer with new data -void UpdateSound(Sound sound, const void *data, int sampleCount) +void UpdateSound(Sound sound, const void *data, int frameCount) { if (sound.stream.buffer != NULL) { StopAudioBuffer(sound.stream.buffer); // TODO: May want to lock/unlock this since this data buffer is read at mixing time - memcpy(sound.stream.buffer->data, data, sampleCount*ma_get_bytes_per_frame(sound.stream.buffer->converter.formatIn, sound.stream.buffer->converter.channelsIn)); + memcpy(sound.stream.buffer->data, data, frameCount*ma_get_bytes_per_frame(sound.stream.buffer->converter.formatIn, sound.stream.buffer->converter.channelsIn)); } } -- cgit v1.2.3