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