Utility.RateToSamples
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 |