Method
LibopenmptUtility.GetSampleCount(int, float, ChannelCount)

Summary

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.