Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 138859 Details for
Bug 196819
Please test and mark stable media-libs/libmodplug-0.8.4-r2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Provide API functions to mute / unmute a channel
libmodplug-0.8.4-channel-muting.patch (text/plain), 1.26 KB, created by
C.P. Banks
on 2007-12-19 00:30:35 UTC
(
hide
)
Description:
Provide API functions to mute / unmute a channel
Filename:
MIME Type:
Creator:
C.P. Banks
Created:
2007-12-19 00:30:35 UTC
Size:
1.26 KB
patch
obsolete
>diff -uNr orig/modplug.cpp src/modplug.cpp >--- orig/modplug.cpp 2006-03-19 22:29:04.000000000 -0500 >+++ src/modplug.cpp 2007-12-17 17:17:42.000000000 -0500 >@@ -168,6 +168,18 @@ > return ( file->mSoundFile.m_nMixChannels < file->mSoundFile.m_nMaxMixChannels ? file->mSoundFile.m_nMixChannels : file->mSoundFile.m_nMaxMixChannels ); > } > >+void ModPlug_MuteChannel(ModPlugFile* file, int chan) { >+ if(chan < 0 || chan >= MAX_CHANNELS) >+ return; >+ file->mSoundFile.Chn[chan].dwFlags |= CHN_MUTE; >+} >+ >+void ModPlug_UnmuteChannel(ModPlugFile* file, int chan) { >+ if(chan < 0 || chan >= MAX_CHANNELS) >+ return; >+ file->mSoundFile.Chn[chan].dwFlags &= ~CHN_MUTE; >+} >+ > void ModPlug_SeekOrder(ModPlugFile* file,int order) > { > file->mSoundFile.SetCurrentOrder(order); >diff -uNr orig/modplug.h src/modplug.h >--- orig/modplug.h 2006-03-19 22:28:35.000000000 -0500 >+++ src/modplug.h 2007-12-17 17:12:14.000000000 -0500 >@@ -109,6 +109,9 @@ > int ModPlug_GetCurrentRow(ModPlugFile* file); > int ModPlug_GetPlayingChannels(ModPlugFile* file); > >+void ModPlug_MuteChannel(ModPlugFile* file, int chan); >+void ModPlug_UnmuteChannel(ModPlugFile* file, int chan); >+ > void ModPlug_SeekOrder(ModPlugFile* file,int order); > int ModPlug_GetModuleType(ModPlugFile* file); > char* ModPlug_GetMessage(ModPlugFile* file);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196819
: 138859