Developer Documentation

Utility.RateToSamples

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