Developer Documentation

Utility.RateToSamples

Warning

Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.

public static int RateToSamples(MediaSampleRate sampleRate = MediaSampleRate.Hz48000, int ms = 20)

Get sample size by samplerate and time

Parameters

NameTypeDescription
sampleRateMediaSampleRatesamplerate in hz
msInt32time in milliseconds

Returns

TypeDescription
Int32sample size