mirror of
https://github.com/jorio/Pomme.git
synced 2024-12-26 14:29:38 +00:00
Sound: Allow sending commands to paused channels
This commit is contained in:
parent
3f8eeba1a3
commit
70acda5ce4
@ -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)
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
|
||||
void SetInitializationParameters(long initBits);
|
||||
|
||||
void ApplyParametersToSource(int mask, bool evenIfInactive = false);
|
||||
void ApplyParametersToSource(int mask);
|
||||
|
||||
inline ChannelImpl* GetPrev() const
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user