Show / Hide Table of Contents

Class SoundSource

Implements sound source for UI audio

Inheritance
System.Object
DependencyObject
Freezable
SoundSource
Inherited Members
Freezable.IsFrozen
Freezable.Parent
Freezable.Changed
Freezable.Freeze()
Freezable.OnPropertyChanged(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
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()
Back to top Generated by DocFX