short/easy question
-
-
I'm having problems with a get/set property, and I want to know how to use it. Declaration in the library where it is says this: public abstract new bool Mute [ get, set ] Member of Microsoft.MediaCenter.Extensibility.AudioMixer Thanks in advance, Theo
*edit* Woops, just looked it up, it's a native .NET library. Cool :cool:. So just add a reference to Microsoft.MediaCenter.dll in your Visual Studio project, then go something like:
using Microsoft.MediaCenter.Extensibility;
...// get the audio mixer. See this page for more info[^]
AudioMixer mixer = AddInHost.AudioMixer;// get the property
bool isMuted = mixer.Muted;// set the property
mixer.Muted = true;Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
-
*edit* Woops, just looked it up, it's a native .NET library. Cool :cool:. So just add a reference to Microsoft.MediaCenter.dll in your Visual Studio project, then go something like:
using Microsoft.MediaCenter.Extensibility;
...// get the audio mixer. See this page for more info[^]
AudioMixer mixer = AddInHost.AudioMixer;// get the property
bool isMuted = mixer.Muted;// set the property
mixer.Muted = true;Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
-
Ok, you didn't ask how to get the AudioMixer, so I assumed you already knew. The article I linked to has some examples; I don't know offhand because it's a 3rd party extension that I've never used before. I suggest you create another post if you need help creating the AudioMixer.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango