Namespace: DeltaEngine.Multimedia
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Multimedia.Tests.SoundDeviceTests
1 unit tests call DeltaEngine.Multimedia.SoundDevice.MusicVolume
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SingleRemarks
Examples
[Test, CloseAfterFirstFrame] public void ChangeMusicVolume() { var device = new MockSoundDevice(); float defaultMusicVolume = Settings.Current.MusicVolume; Assert.IsTrue(device.IsInitialized); try { device.MusicVolume = 1.0f; Assert.AreEqual(1.0f, device.MusicVolume); } finally { device.MusicVolume = defaultMusicVolume; } device.RapidUpdate(); device.Dispose(); }
See Also