Summary
Gets the number of samples based on the specified duration at the given sample rate and channel count.
Syntax
public static int GetSampleCount(int sampleRate, float duration, ChannelCount channelCount)
Parameters
Name | Type | Description |
---|---|---|
sampleRate | int | The audio sample rate. |
duration | float | The duration in seconds. |
channelCount | ChannelCount | The number of audio channels. |
Return Value
Type | Description |
---|---|
int | The total number of samples. |