Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 196819
Collapse All | Expand All

(-)orig/modplug.cpp (+12 lines)
Lines 168-173 Link Here
168
	return ( file->mSoundFile.m_nMixChannels < file->mSoundFile.m_nMaxMixChannels ? file->mSoundFile.m_nMixChannels : file->mSoundFile.m_nMaxMixChannels );
168
	return ( file->mSoundFile.m_nMixChannels < file->mSoundFile.m_nMaxMixChannels ? file->mSoundFile.m_nMixChannels : file->mSoundFile.m_nMaxMixChannels );
169
}
169
}
170
170
171
void ModPlug_MuteChannel(ModPlugFile* file, int chan) {
172
	if(chan < 0 || chan >= MAX_CHANNELS)
173
		return;
174
	file->mSoundFile.Chn[chan].dwFlags |= CHN_MUTE;
175
}
176
177
void ModPlug_UnmuteChannel(ModPlugFile* file, int chan) {
178
	if(chan < 0 || chan >= MAX_CHANNELS)
179
		return;
180
	file->mSoundFile.Chn[chan].dwFlags &= ~CHN_MUTE;
181
}
182
171
void ModPlug_SeekOrder(ModPlugFile* file,int order)
183
void ModPlug_SeekOrder(ModPlugFile* file,int order)
172
{
184
{
173
	file->mSoundFile.SetCurrentOrder(order);
185
	file->mSoundFile.SetCurrentOrder(order);
(-)orig/modplug.h (+3 lines)
Lines 109-114 Link Here
109
int ModPlug_GetCurrentRow(ModPlugFile* file);
109
int ModPlug_GetCurrentRow(ModPlugFile* file);
110
int ModPlug_GetPlayingChannels(ModPlugFile* file);
110
int ModPlug_GetPlayingChannels(ModPlugFile* file);
111
111
112
void ModPlug_MuteChannel(ModPlugFile* file, int chan);
113
void ModPlug_UnmuteChannel(ModPlugFile* file, int chan);
114
112
void ModPlug_SeekOrder(ModPlugFile* file,int order);
115
void ModPlug_SeekOrder(ModPlugFile* file,int order);
113
int ModPlug_GetModuleType(ModPlugFile* file);
116
int ModPlug_GetModuleType(ModPlugFile* file);
114
char* ModPlug_GetMessage(ModPlugFile* file);
117
char* ModPlug_GetMessage(ModPlugFile* file);

Return to bug 196819