OSDN Git Service
(root)
/
dtxmania
/
dtxmania.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3e0ab
)
#xxxxx サウンドデータ読み込みの、若干の高速化。(forループでのbyteコピーをArray.Copy()に変更。本当はコピーそのものを無くすべきなのですが。)
Release114
author
yyagi
<yyagi.dtxmania@gmail.com>
Mon, 14 Jan 2019 13:29:57 +0000
(22:29 +0900)
committer
yyagi
<yyagi.dtxmania@gmail.com>
Mon, 14 Jan 2019 13:29:57 +0000
(22:29 +0900)
FDK/コード/03.サウンド/CSound.cs
patch
|
blob
|
history
diff --git
a/FDK/コード/03.サウンド/CSound.cs
b/FDK/コード/03.サウンド/CSound.cs
index
387cb02
..
cbe2787
100644
(file)
--- a/
FDK/コード/03.サウンド/CSound.cs
+++ b/
FDK/コード/03.サウンド/CSound.cs
@@
-1999,11
+1999,12
@@
Debug.WriteLine("更に再生に失敗: " + Path.GetFileName(this.strファイ
buffer[ i ] = bs[ i ];
}
}
- int s = ( bIntegrateWaveHeader ) ? 44 : 0;
- for ( int i = 0; i < totalPCMSize; i++ )
- {
- buffer[ i + s ] = buffer_rawdata[ i ];
- }
+ //int s = ( bIntegrateWaveHeader ) ? 44 : 0;
+ //for ( int i = 0; i < totalPCMSize; i++ )
+ //{
+ // buffer[ i + s ] = buffer_rawdata[ i ];
+ //}
+ Array.Copy(buffer_rawdata, 0, buffer, wavheadersize, totalPCMSize);
totalPCMSize += wavheadersize;
nPCMデータの先頭インデックス = wavheadersize;
}