We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd44c26 commit 572230cCopy full SHA for 572230c
src/raudio.c
@@ -982,9 +982,13 @@ Sound LoadSoundAlias(Sound source)
982
}
983
984
audioBuffer->sizeInFrames = source.stream.buffer->sizeInFrames;
985
- audioBuffer->volume = source.stream.buffer->volume;
986
audioBuffer->data = source.stream.buffer->data;
987
+ // initalize the buffer as if it was new
988
+ audioBuffer->volume = 1.0f;
989
+ audioBuffer->pitch = 1.0f;
990
+ audioBuffer->pan = 0.5f;
991
+
992
sound.frameCount = source.frameCount;
993
sound.stream.sampleRate = AUDIO.System.device.sampleRate;
994
sound.stream.sampleSize = 32;
0 commit comments