Developer Documentation
Our new developer documentation is now available. Please check it out!

Utility.RateToSamples

public static int RateToSamples(uint sampleRate = 48000U, int ms = 20)

Get sample size by samplerate and time

Parameters

NameTypeDescription
sampleRateUInt32samplerate in hz
msInt32time in milliseconds

Returns

TypeDescription
Int32sample size