public static int GetBytes(this AudioFormat self, int samples) { return(self.GetBytesPerSample() * samples); }
public static int GetSamplesPerSecond(this AudioFormat self) { return(self.SampleRate * self.Channels); }
public static int GetBytesPerSample(this AudioFormat self) { return((self.BitsPerSample * self.Channels) / 8); }