OSDN Git Service
(root)
/
strokestylet
/
CsWin10Desktop3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d73aa33
)
Decoder.Read() で「配列の長さが不足です」例外が発生していたミスを修正。
author
くまかみ工房
<kumakamikoubou@gmail.com>
Wed, 16 Nov 2016 09:41:39 +0000
(18:41 +0900)
committer
くまかみ工房
<kumakamikoubou@gmail.com>
Wed, 16 Nov 2016 09:41:39 +0000
(18:41 +0900)
FDK24/メディア/サウンド/WASAPI/Decoder.cs
patch
|
blob
|
history
diff --git
a/FDK24/メディア/サウンド/WASAPI/Decoder.cs
b/FDK24/メディア/サウンド/WASAPI/Decoder.cs
index
c8812a4
..
8a4bdb2
100644
(file)
--- a/
FDK24/メディア/サウンド/WASAPI/Decoder.cs
+++ b/
FDK24/メディア/サウンド/WASAPI/Decoder.cs
@@
-97,8
+97,8
@@
namespace FDK.メディア.サウンド.WASAPI
// offset は、0~buffer.Length-1 に収める。
offset = Math.Max( 0, Math.Min( buffer.Length - 1, offset ) );
// offset は、0~buffer.Length-1 に収める。
offset = Math.Max( 0, Math.Min( buffer.Length - 1, offset ) );
- // count は、_EncodeWaveData.Length, buffer.Length-offset, count のうちの最小値とする。
- count = Math.Min( Math.Min( this._EncodedWaveData.Length, count ), buffer.Length - offset );
+ // count は、_EncodeWaveData.Length
-Position
, buffer.Length-offset, count のうちの最小値とする。
+ count = Math.Min( Math.Min( this._EncodedWaveData.Length
- (int) this._Position
, count ), buffer.Length - offset );
if( 0 < count )
{
if( 0 < count )
{