Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. short/easy question

short/easy question

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lapje
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • L Lapje

      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

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      *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

      L 1 Reply Last reply
      0
      • J Judah Gabriel 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

        L Offline
        L Offline
        Lapje
        wrote on last edited by
        #3

        This code does not work :(( Keep in mind the AudioMixer is an interface, not a class.

        J 1 Reply Last reply
        0
        • L Lapje

          This code does not work :(( Keep in mind the AudioMixer is an interface, not a class.

          J Offline
          J Offline
          Judah Gabriel Himango
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups