diff --git a/GameRes/Audio.cs b/GameRes/Audio.cs index 9424b5f2..00f59f9d 100644 --- a/GameRes/Audio.cs +++ b/GameRes/Audio.cs @@ -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