mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(DwvAudio): calculate BitsPerSample.
This commit is contained in:
parent
7046987fed
commit
8932735018
@ -54,7 +54,7 @@ namespace GameRes.Formats.SysD
|
|||||||
SamplesPerSecond = header.ToUInt32 (0xC),
|
SamplesPerSecond = header.ToUInt32 (0xC),
|
||||||
AverageBytesPerSecond = header.ToUInt32 (0x10),
|
AverageBytesPerSecond = header.ToUInt32 (0x10),
|
||||||
BlockAlign = header.ToUInt16 (0x14),
|
BlockAlign = header.ToUInt16 (0x14),
|
||||||
BitsPerSample = 0x10,
|
format.BitsPerSample = (ushort)(format.AverageBytesPerSecond * 8 / format.SamplesPerSecond / format.Channels);
|
||||||
};
|
};
|
||||||
uint pcm_size = header.ToUInt32 (0x18);
|
uint pcm_size = header.ToUInt32 (0x18);
|
||||||
var pcm = new StreamRegion (file.AsStream, file.Position, pcm_size);
|
var pcm = new StreamRegion (file.AsStream, file.Position, pcm_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user