Table of Contents

Delegate AudioCallback

Namespace
Refractor
Assembly
Refractor.dll

Receives synthesized audio: interleaved samples in [-1, 1], valid only during the call.

public delegate void AudioCallback(ReadOnlySpan<float> samples, int channels, int sampleRate)

Parameters

samples ReadOnlySpan<float>
Receives synthesized audio: interleaved samples in [-1, 1], valid only during the call.
channels int
Receives synthesized audio: interleaved samples in [-1, 1], valid only during the call.
sampleRate int
Receives synthesized audio: interleaved samples in [-1, 1], valid only during the call.