mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(DWV): fixed.
This commit is contained in:
parent
f34feafeee
commit
6cfe3c3c8e
@ -54,8 +54,8 @@ 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),
|
||||||
format.BitsPerSample = (ushort)(format.AverageBytesPerSecond * 8 / format.SamplesPerSecond / format.Channels);
|
|
||||||
};
|
};
|
||||||
|
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);
|
||||||
return new RawPcmInput (pcm, format);
|
return new RawPcmInput (pcm, format);
|
||||||
|
Loading…
Reference in New Issue
Block a user