mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(WaveFormat.SetBPS): calculate AverageBytesPerSecond field.
This commit is contained in:
@@ -38,6 +38,11 @@ namespace GameRes
|
|||||||
public ushort BlockAlign;
|
public ushort BlockAlign;
|
||||||
public ushort BitsPerSample;
|
public ushort BitsPerSample;
|
||||||
public ushort ExtraSize;
|
public ushort ExtraSize;
|
||||||
|
|
||||||
|
public void SetBPS ()
|
||||||
|
{
|
||||||
|
AverageBytesPerSecond = (uint)(SamplesPerSecond * Channels * BitsPerSample / 8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class SoundInput : Stream
|
public abstract class SoundInput : Stream
|
||||||
|
|||||||
Reference in New Issue
Block a user