|
@@ -982,9 +982,13 @@ Sound LoadSoundAlias(Sound source)
|
|
}
|
|
}
|
|
|
|
|
|
audioBuffer->sizeInFrames = source.stream.buffer->sizeInFrames;
|
|
audioBuffer->sizeInFrames = source.stream.buffer->sizeInFrames;
|
|
- audioBuffer->volume = source.stream.buffer->volume;
|
|
|
|
audioBuffer->data = source.stream.buffer->data;
|
|
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.frameCount = source.frameCount;
|
|
sound.stream.sampleRate = AUDIO.System.device.sampleRate;
|
|
sound.stream.sampleRate = AUDIO.System.device.sampleRate;
|
|
sound.stream.sampleSize = 32;
|
|
sound.stream.sampleSize = 32;
|