Struct SoundInstance
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.Game.dll
A playback the game started, which Sound's Play and ObjectReference's PlaySoundFile return.
public readonly struct SoundInstance : IEquatable<SoundInstance>
- Implements
- Inherited Members
Properties
Id
The game's ID of the playback, which Papyrus's Sound.Play returns as an int.
public uint Id { get; }
Property Value
Methods
Equals(SoundInstance)
public bool Equals(SoundInstance other)
Parameters
otherSoundInstance
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
SetVolume(float)
Sets the playback's volume, as Papyrus's Sound.SetInstanceVolume does.
public void SetVolume(float volume)
Parameters
volumefloatThe volume, from 0 to 1.
Remarks
Call on the game's thread.
Stop()
Stops the playback, as Papyrus's Sound.StopInstance does.
public void Stop()
Remarks
Call on the game's thread.
ToString()
public override string ToString()
Returns
Operators
operator ==(SoundInstance, SoundInstance)
public static bool operator ==(SoundInstance left, SoundInstance right)
Parameters
leftSoundInstancerightSoundInstance
Returns
operator !=(SoundInstance, SoundInstance)
public static bool operator !=(SoundInstance left, SoundInstance right)
Parameters
leftSoundInstancerightSoundInstance