• R/O
  • HTTP
  • SSH
  • HTTPS

dtxmania: 提交


Commit MetaInfo

修订版b7d167da25227bddc182ab6e454a9403acf2afac (tree)
时间2021-10-19 00:56:47
作者yyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#43056 oggのデコードでのオフセット設定ミスを修正。

更改概述

差异

--- a/FDK/コード/03.サウンド/Cogg.cs
+++ b/FDK/コード/03.サウンド/Cogg.cs
@@ -85,9 +85,9 @@ namespace FDK
8585 // samples are interleaved (chan0, chan1, chan0, chan1, etc.)
8686 // sample value range is -0.99999994f to 0.99999994f unless vorbis.ClipSamples == false
8787
88- if (Dest.Length + offset < p + cnt * 4)
88+ if (Dest.Length < p + cnt * 4)
8989 {
90- cnt = (Dest.Length +(int) offset - p) / 4;
90+ cnt = (Dest.Length - p) / 4;
9191 bEnd = true;
9292 }
9393 Buffer.BlockCopy(readBuffer, 0, Dest, p, cnt * 4);
Show on old repository browser