Summary
Gets the number of frames based on the specified duration at the given sample rate.
Syntax
public static int GetFrameCount(int sampleRate, float duration)
Parameters
| Name | Type | Description |
|---|---|---|
| sampleRate | int | The audio sample rate. |
| duration | float | The duration in seconds. |
Return Value
| Type | Description |
|---|---|
| int | The total number of frames. |