/// <summary> /// Get Sound /// </summary> protected void GetSound() { uint dwVolume = 0; SoundVolume.GetSoundVolume(ref dwVolume); this.lbsound.Text = "The Volume is : " + dwVolume.ToString(); }
/// <summary> /// Sound_Load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SetSound_Load(object sender, EventArgs e) { GetSound(); uint dwVolume = 0; SoundVolume.GetSoundVolume(ref dwVolume); int sound = (int)(dwVolume * 6 / 0xFFFF * 1.0); if (dwVolume > 0xFFFF) { sound = (int)(dwVolume * 6 / 0xFFFFFFFF); } this.tbsound.Value = sound; }