diff --git a/src/SoundMixer/ChannelImpl.cpp b/src/SoundMixer/ChannelImpl.cpp index 6de56b4..9c1b8fe 100644 --- a/src/SoundMixer/ChannelImpl.cpp +++ b/src/SoundMixer/ChannelImpl.cpp @@ -48,13 +48,8 @@ void ChannelImpl::SetInitializationParameters(long initBits) source.SetInterpolation(interpolate); } -void ChannelImpl::ApplyParametersToSource(int mask, bool evenIfInactive) +void ChannelImpl::ApplyParametersToSource(int mask) { - if (!evenIfInactive && !source.active) - { - return; - } - // Pitch if (mask & kApplyParameters_Pitch) { diff --git a/src/SoundMixer/ChannelImpl.h b/src/SoundMixer/ChannelImpl.h index 048092c..8f3fc81 100644 --- a/src/SoundMixer/ChannelImpl.h +++ b/src/SoundMixer/ChannelImpl.h @@ -44,7 +44,7 @@ public: void SetInitializationParameters(long initBits); - void ApplyParametersToSource(int mask, bool evenIfInactive = false); + void ApplyParametersToSource(int mask); inline ChannelImpl* GetPrev() const { diff --git a/src/SoundMixer/SoundManager.cpp b/src/SoundMixer/SoundManager.cpp index a287ca8..f636577 100644 --- a/src/SoundMixer/SoundManager.cpp +++ b/src/SoundMixer/SoundManager.cpp @@ -179,7 +179,7 @@ static void InstallSoundInChannel(SndChannelPtr chan, const Ptr sampledSoundHead // The loop param is a special case -- we're detecting it automatically according // to the sound header. If your application needs to force set the loop, it must // issue pommeSetLoopCmd *after* bufferCmd/soundCmd. - impl.ApplyParametersToSource(kApplyParameters_All & ~kApplyParameters_Loop, true); + impl.ApplyParametersToSource(kApplyParameters_All & ~kApplyParameters_Loop); // Override systemwide audio pause. impl.temporaryPause = false;