Show / Hide Table of Contents

Class NullSound

Implements Null Sound, used for testing

Inheritance
System.Object
EmptyKeys.UserInterface.Media.SoundBase
NullSound
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class NullSound : SoundBase

Constructors

NullSound(Object)

Initializes a new instance of the NullSound class.

Declaration
public NullSound(object nativeSound)
Parameters
Type Name Description
System.Object nativeSound

The native sound.

Properties

State

Gets the state.

Declaration
public override SoundState State { get; }
Property Value
Type Description
EmptyKeys.UserInterface.Media.SoundState

The state.

Overrides
EmptyKeys.UserInterface.Media.SoundBase.State

Volume

Gets or sets the volume.

Declaration
public override float Volume { get; set; }
Property Value
Type Description
System.Single

The volume.

Overrides
EmptyKeys.UserInterface.Media.SoundBase.Volume

Methods

Pause()

Pauses this instance.

Declaration
public override void Pause()
Overrides
EmptyKeys.UserInterface.Media.SoundBase.Pause()

Play()

Plays this instance.

Declaration
public override void Play()
Overrides
EmptyKeys.UserInterface.Media.SoundBase.Play()

Stop()

Stops this instance.

Declaration
public override void Stop()
Overrides
EmptyKeys.UserInterface.Media.SoundBase.Stop()
Back to top Generated by DocFX