INTERACT FORUM

Windows => Plug-in Development => Topic started by: PaulSinnema on April 28, 2007, 05:43:35 pm

Title: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: PaulSinnema on April 28, 2007, 05:43:35 pm
Hi,

I'm proud to deliver my second plugin for MC. This is specially for Skype users who have both Skype and MC installed on the same PC (Sadly Skype does not send me monitoring info when a Call is answered at another location).

Here's a description  : http://www.paulsinnema.net/modules/wiwimod/index.php?page=Auto+Skype+Mute&back=Media+Center+Plugins (http://www.paulsinnema.net/modules/wiwimod/index.php?page=Auto+Skype+Mute&back=Media+Center+Plugins)
Download from here : http://www.paulsinnema.net/modules/mydownloads/visit.php?cid=4&lid=6 (http://www.paulsinnema.net/modules/mydownloads/visit.php?cid=4&lid=6)

Paul.
Title: Re: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: PaulSinnema on April 28, 2007, 06:16:47 pm
I'm running into trouble with this one. It seems that MC uses the Master Volume. The output sound of Skype is also lowered when my plugin lowers that of MC. Further tries Skype to compensate for the lost soundstrength and moves the Master Volume up again. This then causes MC to send me Volume Changed Events. Pfew... what now?
Title: Re: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: Mr ChriZ on April 29, 2007, 05:57:53 am
You can tell MC to use it's own internal volume controls
Click on the volume button.  This can cause other issues however.

Vista may resolve this as each application get's it's own volume control.
Title: Re: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: PaulSinnema on April 29, 2007, 06:59:51 am
You can tell MC to use it's own internal volume controls
Click on the volume button.  This can cause other issues however.

Click on which volume button, in the settings (choosing between 'Wave' and 'Direct Sound')?
Title: Re: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: Alex B on April 29, 2007, 12:45:38 pm
Click the small speaker icon besides the volume slider. You can access the same menu also from the standard top menu: Player > Volume...
Title: Re: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: PaulSinnema on April 29, 2007, 12:58:02 pm
Click the small speaker icon besides the volume slider. You can access the same menu also from the standard top menu: Player > Volume...

Thanx Alex,

Never noticed that one before. I'm an old time user but didn't know this one.

Paul
Title: Re: Auto Skype Mute 0.0.0.1 Betaversion available
Post by: JimH on April 29, 2007, 05:49:56 pm
I stole one of your posts, Paul, to start a new thread here:
http://yabb.jriver.com/interact/index.php?topic=40305.0

Here's a copy of what you said:

Hi Criz,

Well I think I solved it. In Windows XP (and Vista) a library called 'winmm.dll' is available. It has 2 functions that I'm using now.


Code:
        [DllImport ( "winmm.dll" )]
        public static extern int waveOutGetVolume ( IntPtr hwo, out uint dwVolume );

        [DllImport ( "winmm.dll" )]
        public static extern int waveOutSetVolume ( IntPtr hwo, uint dwVolume );


These functions do not alter the Master Volume but the Wave Out Volume. I still have some work to do on the presentation. When I use the functions I do it in a loop with a Sleep(200). That's not very nice because the Slider on the 'Current Volume' doesn't reflect what's going on until the loop finishes. I tried adding a DoEvents() function but that caused all kinds of other unwanted sideeffects.

The Volume of Skype is lowered too using these functions so I guess I'm still not quite there. You can download the latest build from the link above.

Yeah, I also found a lot of changes for Vista. No good in Windows XP though. I still don't use Vista because of the amount of work that has to done to install it and reinstall all my programs, SP's, etc... Will go there some time in the future I guess.

Paul.

PS: The cook on http://tinyurl.com/2ta24t, that's you?