Class SampleProvider2D
Namespace: ValveResourceFormat.Renderer.Audio.SampleProviders
Assembly: Renderer.dll
Plays an inner sample provider without spatialization, applying only .
csharp
public class SampleProvider2D : AudioSampleProvider, IAudioSampleProviderInheritance
object ← AudioSampleProvider ← SampleProvider2D
Derived
Implements
Inherited Members
AudioSampleProvider.OnOver, AudioSampleProvider.Volume, AudioSampleProvider.VolumeMultiplier, AudioSampleProvider.Read(float[], int, int), AudioSampleProvider.Over()
Constructors
SampleProvider2D(IAudioSampleProvider)
Creates a 2D provider around the given source.
csharp
public SampleProvider2D(IAudioSampleProvider provider)Parameters
provider IAudioSampleProvider
Properties
Provider
Gets the wrapped source provider.
csharp
protected IAudioSampleProvider Provider { get; }Property Value
Methods
Read(float[], int, int)
Fills buffer with up to count samples starting at offset. Returns the number of samples written. A return value smaller than count signals the end of the sound.
csharp
public override int Read(float[] buffer, int offset, int count)Parameters
buffer float[]
offset int
count int

