From 572230c8adfca8b2ee8550a8746a11d8717be00b Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Tue, 19 Aug 2025 08:16:20 -0700 Subject: [PATCH] Initialize sound alias properties as if it was a new sound --- src/raudio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/raudio.c b/src/raudio.c index 76fee2333..e21bf578c 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -982,9 +982,13 @@ Sound LoadSoundAlias(Sound source) } audioBuffer->sizeInFrames = source.stream.buffer->sizeInFrames; - audioBuffer->volume = source.stream.buffer->volume; audioBuffer->data = source.stream.buffer->data; + // initalize the buffer as if it was new + audioBuffer->volume = 1.0f; + audioBuffer->pitch = 1.0f; + audioBuffer->pan = 0.5f; + sound.frameCount = source.frameCount; sound.stream.sampleRate = AUDIO.System.device.sampleRate; sound.stream.sampleSize = 32;