docs.unity3d.com
    Show / Hide Table of Contents

    Struct DefaultDSPGraphDriver

    A simple IAudioOutput implementation that writes the output from a single graph into the provided output buffer

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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)

    Calls BeginMix(Int32, DSPGraph.ExecutionMode) on Graph

    Declaration
    public void BeginMix(int frameCount)
    Parameters
    Type Name Description
    Int32 frameCount

    The number of frames to be mixed

    Implements
    IAudioOutput.BeginMix(Int32)

    Dispose()

    Dispose Graph

    Declaration
    public void Dispose()
    Implements
    IAudioOutput.Dispose()

    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
    IAudioOutput.EndMix(NativeArray<Single>, Int32)

    Initialize(Int32, SoundFormat, Int32, Int64)

    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
    Implements
    IAudioOutput.Initialize(Int32, SoundFormat, Int32, Int64)

    Extension Methods

    AudioOutputExtensions.AttachToDefaultOutput<T>(T)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023