diff --git a/ArcFormats/SysD/AudioDWV.cs b/ArcFormats/SysD/AudioDWV.cs index 65fa2468..aaba0fa3 100644 --- a/ArcFormats/SysD/AudioDWV.cs +++ b/ArcFormats/SysD/AudioDWV.cs @@ -54,7 +54,7 @@ namespace GameRes.Formats.SysD SamplesPerSecond = header.ToUInt32 (0xC), AverageBytesPerSecond = header.ToUInt32 (0x10), BlockAlign = header.ToUInt16 (0x14), - BitsPerSample = 0x10, + format.BitsPerSample = (ushort)(format.AverageBytesPerSecond * 8 / format.SamplesPerSecond / format.Channels); }; uint pcm_size = header.ToUInt32 (0x18); var pcm = new StreamRegion (file.AsStream, file.Position, pcm_size);