1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Prevent ride music popping in loudly

This commit is contained in:
Ted John
2022-06-28 00:16:40 +01:00
parent 585ebed600
commit 83758de284

View File

@@ -202,7 +202,7 @@ namespace OpenRCT2::RideAudio
auto source = audioObj->GetSample(0);
if (source != nullptr)
{
auto channel = CreateAudioChannel(source, MixerGroup::Sound, false);
auto channel = CreateAudioChannel(source, MixerGroup::Sound, false, 0);
if (channel != nullptr)
{
_musicChannels.emplace_back(instance, channel, nullptr);
@@ -226,7 +226,7 @@ namespace OpenRCT2::RideAudio
if (source != nullptr)
{
auto shouldLoop = musicObj->GetTrackCount() == 1;
auto channel = CreateAudioChannel(source, MixerGroup::RideMusic, shouldLoop);
auto channel = CreateAudioChannel(source, MixerGroup::RideMusic, shouldLoop, 0);
if (channel != nullptr)
{
_musicChannels.emplace_back(instance, channel, source);