Struct ParameterData<TParameter>
Provides methods for retrieving parameter values at a specific time inside a mix. ExecuteContext<TParameters, TProviders> IAudioKernel<TParameters, TProviders>
Inherited Members
Namespace: Unity.Audio
Syntax
public struct ParameterData<TParameter>
where TParameter : struct, Enum
Type Parameters
| Name | Description |
|---|---|
| TParameter | The enum type for the parameter |
Methods
GetFloat(TParameter, Int32)
Get the value of a parameter at a sample offset
Declaration
public float GetFloat(TParameter parameter, int sampleOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| TParameter | parameter | A specific enum value from the parameter enumeration specified in the audio job. IAudioKernel<TParameters, TProviders> |
| Int32 | sampleOffset | The time to evaluate the parameter at. |
Returns
| Type | Description |
|---|---|
| Single | The value of a parameter. |