Our new developer documentation is now available. Please check it out!
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
Name | Type | Description |
---|---|---|
sampleRate | MediaSampleRate | samplerate in hz |
ms | Int32 | time in milliseconds |
Returns
Type | Description |
---|---|
Int32 | sample size |