mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r2002) Rename MxActivate to MxActivateChannel, which is more appropriate
This commit is contained in:
parent
e1f31cd031
commit
1b9ee9b41e
2
mixer.c
2
mixer.c
@ -139,7 +139,7 @@ void MxSetChannelVolume(MixerChannel *mc, uint left, uint right)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MxActivate(MixerChannel* mc)
|
void MxActivateChannel(MixerChannel* mc)
|
||||||
{
|
{
|
||||||
mc->active = true;
|
mc->active = true;
|
||||||
}
|
}
|
||||||
|
2
mixer.h
2
mixer.h
@ -19,6 +19,6 @@ void MxMixSamples(Mixer *mx, void *buffer, uint samples);
|
|||||||
MixerChannel *MxAllocateChannel(Mixer *mx);
|
MixerChannel *MxAllocateChannel(Mixer *mx);
|
||||||
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
|
void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
|
||||||
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
|
void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
|
||||||
void MxActivate(MixerChannel*);
|
void MxActivateChannel(MixerChannel*);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
2
sound.c
2
sound.c
@ -124,7 +124,7 @@ static void StartSound(uint sound, uint panning, uint volume)
|
|||||||
return;
|
return;
|
||||||
if (SetBankSource(mc, sound)) {
|
if (SetBankSource(mc, sound)) {
|
||||||
MxSetChannelVolume(mc, volume << 8, volume << 8);
|
MxSetChannelVolume(mc, volume << 8, volume << 8);
|
||||||
MxActivate(mc);
|
MxActivateChannel(mc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user