Class Sound
Inheritance
System.Object
Sound
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.Audio
Assembly: Inferno.Desktop.dll
Syntax
public class Sound : IDisposable
Properties
| Improve this Doc View SourceLooping
Whether or not the sound is looping
Declaration
public bool Looping { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Pitch
The pitch the sound is playing at
Declaration
public float Pitch { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Volume
The volume the sound is playing at
Declaration
public float Volume { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceDispose()
Dispose sound
Declaration
public void Dispose()
FromWave(WaveFormat)
Create sound from Wave Format
Declaration
public static Sound FromWave(WaveFormat wave)
Parameters
Type | Name | Description |
---|---|---|
WaveFormat | wave | Wave data |
Returns
Type | Description |
---|---|
Sound | Sound from wave data |
Pause()
Pause sound
Declaration
public void Pause()
Play()
Play sound
Declaration
public void Play()
SetVolume(Int32)
Declaration
public void SetVolume(int volume)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | volume |
Stop()
Stop sound
Declaration
public void Stop()
Implements
System.IDisposable