OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / FDK17プロジェクト / コード / 05.DirectShow / CDStoWAVFileImage.cs
index 6efadb3..b8feddc 100644 (file)
@@ -5,7 +5,7 @@ using System.IO;
 using System.Runtime.InteropServices;\r
 using System.Diagnostics;\r
 using DirectShowLib;\r
-using SlimDX.Multimedia;\r
+using SharpDX.Multimedia;\r
 \r
 namespace FDK\r
 {\r
@@ -115,11 +115,11 @@ namespace FDK
                                bw.Write( new byte[] { 0x57, 0x41, 0x56, 0x45 } );              // 'WAVE'\r
                                bw.Write( new byte[] { 0x66, 0x6D, 0x74, 0x20 } );              // 'fmt '\r
                                bw.Write( (UInt32) ( 16 + ( ( wfx拡張領域.Length > 0 ) ? ( 2/*sizeof(WAVEFORMATEX.cbSize)*/ + wfx拡張領域.Length ) : 0 ) ) );   // fmtチャンクのサイズ[byte]\r
-                               bw.Write( (UInt16) wfx.FormatTag );                                             // フォーマットID(リニアPCMなら1)\r
+                               bw.Write( (UInt16) wfx.Encoding );                                              // フォーマットID(リニアPCMなら1)\r
                                bw.Write( (UInt16) wfx.Channels );                                              // チャンネル数\r
-                               bw.Write( (UInt32) wfx.SamplesPerSecond );                              // サンプリングレート\r
+                               bw.Write( (UInt32) wfx.SampleRate );                                    // サンプリングレート\r
                                bw.Write( (UInt32) wfx.AverageBytesPerSecond );                 // データ速度\r
-                               bw.Write( (UInt16) wfx.BlockAlignment );                                // ブロックサイズ\r
+                               bw.Write( (UInt16) wfx.BlockAlign );                                    // ブロックサイズ\r
                                bw.Write( (UInt16) wfx.BitsPerSample );                                 // サンプルあたりのビット数\r
                                if( wfx拡張領域.Length > 0 )\r
                                {\r