summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDaniil Kisel <[email protected]>2023-10-13 20:54:43 +0300
committerGitHub <[email protected]>2023-10-13 19:54:43 +0200
commit5a0d9c8d43d212892e421e1cbb532fea508d8692 (patch)
treed58efb16fde8f535bee7111154340d39919e0662
parent36abc48cf8abe008f7f02516dcf1c1985517aee4 (diff)
downloadraylib-5a0d9c8d43d212892e421e1cbb532fea508d8692.tar.gz
raylib-5a0d9c8d43d212892e421e1cbb532fea508d8692.zip
Fix `UpdateSound` parameter name (#3405)
-rw-r--r--src/raudio.c4
1 files changed, 2 insertions, 2 deletions
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));
}
}