Struct SampleProviderContainer<TProviders>
A simple container for a DSPNode's sample providers
Syntax
public struct SampleProviderContainer<TProviders>
where TProviders : struct, Enum
Type Parameters
Properties
Count
Gets the total number of sample providers in a container.
Declaration
public int Count { get; }
Property Value
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
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
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