Search Results for

    Show / Hide Table of Contents

    Struct AudioFormat

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.IO.Audio
    Assembly: Glitch9.IO.dll
    Syntax
    public readonly struct AudioFormat

    Constructors

    | Edit this page View Source

    AudioFormat(AudioEncoding, SampleRate, Bitrate, BitDepth, int, int)

    Declaration
    public AudioFormat(AudioEncoding encoding = AudioEncoding.PCM16, SampleRate sampleRate = SampleRate.Hz44100, Bitrate bitrate = Bitrate.Kbps128, BitDepth bitDepth = BitDepth.Bit16, int channels = 1, int headerSize = 44)
    Parameters
    Type Name Description
    AudioEncoding encoding
    SampleRate sampleRate
    Bitrate bitrate
    BitDepth bitDepth
    int channels
    int headerSize

    Properties

    | Edit this page View Source

    BitDepth

    Declaration
    public BitDepth BitDepth { get; }
    Property Value
    Type Description
    BitDepth
    | Edit this page View Source

    Bitrate

    Declaration
    public Bitrate Bitrate { get; }
    Property Value
    Type Description
    Bitrate
    | Edit this page View Source

    Channels

    Declaration
    public int Channels { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Encoding

    Declaration
    public AudioEncoding Encoding { get; }
    Property Value
    Type Description
    AudioEncoding
    | Edit this page View Source

    HeaderSize

    Declaration
    public int HeaderSize { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    SampleRate

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

    Methods

    | Edit this page View Source

    DefaultMP3(int)

    Declaration
    public static AudioFormat DefaultMP3(int channels = 1)
    Parameters
    Type Name Description
    int channels
    Returns
    Type Description
    AudioFormat
    | Edit this page View Source

    DefaultPCM(int)

    Declaration
    public static AudioFormat DefaultPCM(int channels = 1)
    Parameters
    Type Name Description
    int channels
    Returns
    Type Description
    AudioFormat
    | Edit this page View Source

    DefaultWAV(int)

    Declaration
    public static AudioFormat DefaultWAV(int channels = 1)
    Parameters
    Type Name Description
    int channels
    Returns
    Type Description
    AudioFormat

    Extension Methods

    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetHashCodeOrDefault<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation