docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate AudioReadEventHandler

    Delegate to be called when new audio data is received.

    Namespace: Unity.WebRTC
    Assembly: Unity.WebRTC.dll
    Syntax
    public delegate void AudioReadEventHandler(float[] data, int channels, int sampleRate)
    Parameters
    Type Name Description
    float[] data

    Float array containing audio data samples.

    int channels

    Number of audio channels.

    int sampleRate

    Sample rate of the audio data

    Remarks

    AudioReadEventHandler is a delegate to be called when new audio data is received.

    Examples
    audioStreamTrack.onReceived += (data, channels, sampleRate) =>
    {
    }
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)