Unosquare
    Show / Hide Table of Contents

    Class RenderingAudioEventArgs

    Provides the audio samples rendering payload as event arguments.

    Inheritance
    Object
    EventArgs
    RenderingEventArgs
    RenderingAudioEventArgs
    Inherited Members
    RenderingEventArgs.EngineState
    RenderingEventArgs.Stream
    RenderingEventArgs.Clock
    RenderingEventArgs.StartTime
    RenderingEventArgs.Duration
    RenderingEventArgs.PresentationTime
    EventArgs.Empty
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unosquare.FFME.Common
    Syntax
    public sealed class RenderingAudioEventArgs : RenderingEventArgs

    Properties

    BitsPerSample

    Gets the number of bits per sample.

    Declaration
    public int BitsPerSample { get; }
    Property Value
    Type Description
    Int32

    Buffer

    Gets a the raw data buffer going into the audio device. Samples are provided in PCM 16-bit signed, interleaved stereo.

    Declaration
    public IReadOnlyList<byte> Buffer { get; }
    Property Value
    Type Description
    IReadOnlyList<Byte>

    BufferLength

    Gets the length in bytes of the samples buffer.

    Declaration
    public int BufferLength { get; }
    Property Value
    Type Description
    Int32

    ChannelCount

    Gets the number of channels.

    Declaration
    public int ChannelCount { get; }
    Property Value
    Type Description
    Int32

    Latency

    Gets the latency between the audio buffer position and the real-time playback clock.

    Declaration
    public TimeSpan Latency { get; }
    Property Value
    Type Description
    TimeSpan

    SampleRate

    Gets the number of samples in 1 second.

    Declaration
    public int SampleRate { get; }
    Property Value
    Type Description
    Int32

    Samples

    Gets the number of samples in the buffer for all channels.

    Declaration
    public int Samples { get; }
    Property Value
    Type Description
    Int32

    SamplesPerChannel

    Gets the number of samples in the buffer per channel.

    Declaration
    public int SamplesPerChannel { get; }
    Property Value
    Type Description
    Int32

    Methods

    GetBufferData()

    Gets a the raw data buffer going into the audio device. Samples are provided in PCM 16-bit signed, interleaved stereo.

    Declaration
    public byte[] GetBufferData()
    Returns
    Type Description
    Byte[]

    The buffer data as an array.

    See Also

    EventArgs

    Comments

    Back to top Copyright © 2017-2019 Unosquare