Search Results for

    Show / Hide Table of Contents

    Class SoundReframerContext

    A sound reframer context that can reframe sound chunks into consistent durations.

    Inheritance
    System.Object
    SoundReframerContext
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class SoundReframerContext : object

    Constructors

    SoundReframerContext(Int32, AudioConfig)

    Initializes a new instance of the SoundReframerContext class.

    Declaration
    public SoundReframerContext(int frameDuration, AudioConfig config)
    Parameters
    Type Name Description
    System.Int32 frameDuration

    The frame duration.

    AudioConfig config

    The configuration.

    Properties

    Config

    Gets the config.

    Declaration
    public AudioConfig Config { get; }
    Property Value
    Type Description
    AudioConfig

    DisableTimestampReset

    Gets or sets whether timestamp resetting should be disabled entirely. Only applies if timestamps are auto-generated (i.e. not set on the frames).

    Declaration
    public bool DisableTimestampReset { get; set; }
    Property Value
    Type Description
    System.Boolean

    ForceTimestampReset

    Gets or sets whether to force a timestamp reset with the next raised frame. If set to true, this value will be reset to false after the wall-clock reset takes place. Only applies if timestamps are auto-generated (i.e. not set on the frames).

    Declaration
    public bool ForceTimestampReset { get; set; }
    Property Value
    Type Description
    System.Boolean

    FrameDuration

    Gets the frame duration.

    Declaration
    public int FrameDuration { get; }
    Property Value
    Type Description
    System.Int32

    TimestampResetInterval

    Gets or sets the amount of time in milliseconds between audio frames that will trigger a wall-clock reset of the timestamp. Only applies if timestamps are auto-generated (i.e. not set on the frames). Defaults to 1000.

    Declaration
    public int TimestampResetInterval { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    AutoTimestamp(Int32)

    Gets the next timestamp.

    Declaration
    protected long AutoTimestamp(int timestampDelta)
    Parameters
    Type Name Description
    System.Int32 timestampDelta
    Returns
    Type Description
    System.Int64

    ProcessFrame(AudioFrame, AudioBuffer)

    Processes a frame.

    Declaration
    public void ProcessFrame(AudioFrame frame, AudioBuffer inputBuffer)
    Parameters
    Type Name Description
    AudioFrame frame

    The frame.

    AudioBuffer inputBuffer

    The input buffer.

    Events

    OnFrame

    Raised when a frame is ready.

    Declaration
    public event Action1<AudioFrame> OnFrame
    Event Type
    Type Description
    Action1<AudioFrame>
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0