Class CachedSound
Namespace: ValveResourceFormat.Renderer.Audio
Assembly: Renderer.dll
A decoded sound: interleaved 16-bit PCM at the mixer's sample rate and channel count, stored as a region of a shared slab rather than its own array. Returned as a placeholder while a background thread decodes it.
csharp
public sealed class CachedSoundInheritance
Properties
LoopEnd
Gets the loop end position (exclusive) relative to .
csharp
public int LoopEnd { get; }Property Value
LoopStart
Gets the loop start position relative to , or -1 when the sound does not loop.
csharp
public int LoopStart { get; }Property Value
Ready
Gets whether decoding has finished. Volatile: true implies the samples are already visible.
csharp
public bool Ready { get; }Property Value
SampleLength
Gets this sound's sample count.
csharp
public int SampleLength { get; }Property Value
SampleOffset
Gets this sound's first sample index within .
csharp
public int SampleOffset { get; }Property Value
Samples
Gets the slab holding the samples. Shared with other sounds: only [, + ) belongs to this sound. Empty until , or when decoding failed.
csharp
public short[] Samples { get; }Property Value
short[]

