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