docs.unity3d.com
    Show / Hide Table of Contents

    Struct SampleProviderContainer<TProviders>

    A simple container for a DSPNode's sample providers

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Audio
    Syntax
    public struct SampleProviderContainer<TProviders>
        where TProviders : struct, Enum
    Type Parameters
    Name Description
    TProviders

    The type of the providers enum for the associated IAudioKernel<TParameters, TProviders>

    Properties

    Count

    Gets the total number of sample providers in a container.

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

    Methods

    GetCount(TProviders)

    Gets the number of sample providers associated with a given enum value in a container.

    Declaration
    public int GetCount(TProviders p)
    Parameters
    Type Name Description
    TProviders p
    Returns
    Type Description
    Int32

    GetSampleProvider(TProviders, Int32)

    Gets the sample provider associated with a given enum value.

    Declaration
    public SampleProvider GetSampleProvider(TProviders p, int arrayIndex = 0)
    Parameters
    Type Name Description
    TProviders p
    Int32 arrayIndex
    Returns
    Type Description
    SampleProvider

    Returns a SampleProvider

    GetSampleProvider(Int32, Int32)

    Gets the sample provider associated with a given index.

    Declaration
    public SampleProvider GetSampleProvider(int itemIndex = 0, int arrayIndex = 0)
    Parameters
    Type Name Description
    Int32 itemIndex
    Int32 arrayIndex
    Returns
    Type Description
    SampleProvider
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023