Search Results for

    Show / Hide Table of Contents

    Struct AudioBuffer

    Implements
    IAudioBuffer
    IAudioChunk
    IEmptiable
    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 AudioBuffer : IAudioBuffer, IAudioChunk, IEmptiable

    Constructors

    | Edit this page View Source

    AudioBuffer(ReadOnlyMemory<float>, SampleRate, int, string)

    Declaration
    public AudioBuffer(ReadOnlyMemory<float> samples, SampleRate sampleRate, int channels, string purpose = null)
    Parameters
    Type Name Description
    ReadOnlyMemory<float> samples
    SampleRate sampleRate
    int channels
    string purpose
    | Edit this page View Source

    AudioBuffer(ReadOnlyMemory<float>, int, int, string)

    Declaration
    public AudioBuffer(ReadOnlyMemory<float> samples, int sampleRate, int channels, string purpose = null)
    Parameters
    Type Name Description
    ReadOnlyMemory<float> samples
    int sampleRate
    int channels
    string purpose

    Properties

    | Edit this page View Source

    Channels

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

    IsEmpty

    Gets whether this object is empty.

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

    Purpose

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

    SampleRate

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

    Samples

    Declaration
    public ReadOnlyMemory<float> Samples { get; }
    Property Value
    Type Description
    ReadOnlyMemory<float>

    Methods

    | Edit this page View Source

    GetDecoder(StreamingAudioEncoding)

    Declaration
    public static AudioDecoder GetDecoder(StreamingAudioEncoding encoding)
    Parameters
    Type Name Description
    StreamingAudioEncoding encoding
    Returns
    Type Description
    AudioDecoder

    Implements

    IAudioBuffer
    IAudioChunk
    IEmptiable

    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)
    UnityEngineExtensions.ToAudioClip(AudioBuffer, string)
    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