(WaveFormat.SetBPS): calculate AverageBytesPerSecond field.

This commit is contained in:
morkt 2017-02-25 02:03:11 +04:00
parent 89674e9d58
commit f49598532d

View File

@ -38,6 +38,11 @@ namespace GameRes
public ushort BlockAlign;
public ushort BitsPerSample;
public ushort ExtraSize;
public void SetBPS ()
{
AverageBytesPerSecond = (uint)(SamplesPerSecond * Channels * BitsPerSample / 8);
}
}
public abstract class SoundInput : Stream