Show / Hide Table of Contents

    Struct AudioFrame

    Single raw uncompressed audio frame.

    Namespace: Microsoft.MixedReality.WebRTC
    Assembly: Microsoft.MixedReality.WebRTC.dll
    Syntax
    public struct AudioFrame
    Remarks

    The use of ref struct is an optimization to avoid heap allocation on each frame while having a nicer-to-use container to pass a frame accross methods.

    Fields

    | Improve this Doc View Source

    audioData

    Buffer of audio samples for all channels and all frames.

    Declaration
    public IntPtr audioData
    Field Value
    Type Description
    IntPtr
    | Improve this Doc View Source

    bitsPerSample

    Number of bits per sample, generally 8 or 16.

    Declaration
    public uint bitsPerSample
    Field Value
    Type Description
    UInt32
    | Improve this Doc View Source

    channelCount

    Number of audio channels.

    Declaration
    public uint channelCount
    Field Value
    Type Description
    UInt32
    | Improve this Doc View Source

    frameCount

    Number of consecutive frames in the audio data buffer. WebRTC generally delivers frames in 10ms chunks, so for e.g. a 16 kHz sample rate the frame count would be 1000.

    Declaration
    public uint frameCount
    Field Value
    Type Description
    UInt32
    | Improve this Doc View Source

    sampleRate

    Sample rate, in Hz. Generally in the range 8-48 kHz.

    Declaration
    public uint sampleRate
    Field Value
    Type Description
    UInt32
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX