Interface IAudioDevice ​
Namespace: ValveResourceFormat.Renderer.Audio
Assembly: Renderer.dll
An audio output device that accepts interleaved 32-bit float samples.
csharp
public interface IAudioDevice : IDisposableImplements ​
Properties ​
Channels ​
Gets the number of output channels (currently always 2).
csharp
int Channels { get; }Property Value ​
SampleRate ​
Gets the output sample rate in Hz.
csharp
int SampleRate { get; }Property Value ​
Methods ​
SubmitSamples(ReadOnlySpan<float>) ​
Submits interleaved float samples for playback. Implementations should block until accepted.
csharp
void SubmitSamples(ReadOnlySpan<float> samples)Parameters ​
samples ReadOnlySpan<float>

