MixedReality-WebRTC MixedReality-WebRTC
Search Results for

    Show / Hide Table of Contents

    Struct AudioFrame

    Single raw uncompressed audio frame.

    Namespace: Microsoft.MixedReality.WebRTC
    Assembly: Microsoft.MixedReality.WebRTC.dll
    Syntax
    public ref 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.

    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

    sampleCount

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

    Declaration
    public uint sampleCount
    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
    In This Article
    Back to top Generated by DocFX