G
Gennady46
Guest
to make it brief i have track bar on a form and in
public Form1()
{
trackBar1.Minimum = 0;
trackBar1.Maximum = 100;
trackBar1.Value = 50;
}
I play my sound a .wav file with:
SoundPlayer simpleSound = new SoundPlayer(MySound);
simpleSound.Play();
in function:
private void trackBar1_Scroll(object sender, EventArgs e)
{
// i want to set connect the trackBar1 value with volume of simpleSound
}
Note: I do not want connect PC volume with value of trackBar1, so PC volume could be 100%, but connect
with SoundPlayer
class. Is that possible, some examples could be good.
Thanks in advance, write back.
Continue reading...
public Form1()
{
trackBar1.Minimum = 0;
trackBar1.Maximum = 100;
trackBar1.Value = 50;
}
I play my sound a .wav file with:
SoundPlayer simpleSound = new SoundPlayer(MySound);
simpleSound.Play();
in function:
private void trackBar1_Scroll(object sender, EventArgs e)
{
// i want to set connect the trackBar1 value with volume of simpleSound
}
Note: I do not want connect PC volume with value of trackBar1, so PC volume could be 100%, but connect
with SoundPlayer
class. Is that possible, some examples could be good.
Thanks in advance, write back.
Continue reading...