Struct DefaultDSPGraphDriver
A simple IAudioOutput implementation that writes the output from a single graph into the provided output buffer
Inherited Members
Namespace: Unity.Audio
Syntax
[BurstCompile(CompileSynchronously = true)]
public struct DefaultDSPGraphDriver : IAudioOutput
Fields
Graph
The graph that will be mixed
Declaration
public DSPGraph Graph
Field Value
Type | Description |
---|---|
DSPGraph |
Methods
BeginMix(Int32)
Declaration
public void BeginMix(int frameCount)
Parameters
Type | Name | Description |
---|---|---|
Int32 | frameCount | The number of frames to be mixed |
Implements
Dispose()
Dispose Graph
Declaration
public void Dispose()
Implements
EndMix(NativeArray<Single>, Int32)
Calls ReadMix(NativeArray<Single>, Int32, Int32) on Graph and writes its output into the provided buffer
Declaration
public void EndMix(NativeArray<float> output, int frames)
Parameters
Type | Name | Description |
---|---|---|
NativeArray<Single> | output | The output buffer to be used. Contents will be overwritten. |
Int32 | frames | The number of frames to be mixed |
Implements
Initialize(Int32, SoundFormat, Int32, Int64)
Declaration
public void Initialize(int channelCount, SoundFormat format, int sampleRate, long dspBufferSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | channelCount | |
SoundFormat | format | |
Int32 | sampleRate | |
Int64 | dspBufferSize |