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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user