1

Using the following WMP control code,

public static WMPLib.WindowsMediaPlayer player = new WMPLib.WindowsMediaPlayer();
...

And volume controls,

private void button4_Click(object sender, RoutedEventArgs e)
    {
        if (player.settings.volume > 0)
        {
            player.settings.volume--;
        }
        TextBox3.Text = "Music Volume: " + player.settings.volume.ToString();
    }

It's basically a kind of computer karaoke, where the computer uses text to speech to 'sing' the lyrics, and wmp to play the instrumental. Unfortunately, I have a problem because when I set the WMP Control's volume it adjusts the whole app's volume, whereas setting the text-to-speech object's volume does not affect WMP's volume. Is there a way to play an mp3 so ideally both volumes are completely independent of each other?

Sam
  • 7,252
  • 16
  • 46
  • 65
jamesg76
  • 21
  • 2
  • try this: http://stackoverflow.com/questions/14527339/change-volume-of-mp3-playing-via-wmplib-in-c-sharp – yms Jun 16 '14 at 17:40

0 Answers0