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
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