Class SoundSource
Implements sound source for UI audio
Inherited Members
Namespace: EmptyKeys.UserInterface.Media
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class SoundSource : Freezable
Constructors
SoundSource()
Initializes a new instance of the SoundSource class.
Declaration
public SoundSource()
Fields
SoundAssetProperty
The sound asset property
Declaration
public static readonly DependencyProperty SoundAssetProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SoundProperty
The sound property
Declaration
public static readonly DependencyProperty SoundProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SoundTypeProperty
The sound type property
Declaration
public static readonly DependencyProperty SoundTypeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
VolumeProperty
The volume property
Declaration
public static readonly DependencyProperty VolumeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Sound
Gets or sets the sound.
Declaration
public SoundBase Sound { get; set; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.Media.SoundBase | The sound. |
SoundAsset
Gets or sets the sound asset.
Declaration
public string SoundAsset { get; set; }
Property Value
Type | Description |
---|---|
System.String | The sound asset. |
SoundType
Gets or sets the type of the sound.
Declaration
public SoundType SoundType { get; set; }
Property Value
Type | Description |
---|---|
SoundType | The type of the sound. |
Volume
Gets or sets the volume.
Declaration
public float Volume { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The volume. |
Methods
Play()
Plays this instance.
Declaration
public void Play()