mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(WaveFormat.SetBPS): calculate AverageBytesPerSecond field.
This commit is contained in:
parent
89674e9d58
commit
f49598532d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user