 nChannels As Integer
   nSamplesPerSec As Long
   nAvgBytesPerSec As Long
   nBlockAlign As Integer
   wBitsPerSample As Integer
   cbSize As Integer
End Type

Private Type WAVE_HEADER
   '// RIFF header
   cRIFFHeader As String * 4
   nRIFFBytes As Long

   '// data type
   cDataTypeID As String * 4

   '// wave format
   cFormatHeader As String * 4
   nFormatBytes As Long

   nFormatTag As Integer
   nChannels As Integer
   nSamplesPerSec As Long
   nAvgBytesPerSec As Long
   nBlockAlign As Integer
   nB