home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Planet Source Code Jumbo …e CD Visual Basic 1 to 7
/
3_2004-2005.ISO
/
Data
/
Zips
/
Matt_Playe176515722004.psc
/
FFT
/
mixer
/
WaveIn.bas
< prev
Wrap
BASIC Source File
|
2004-07-02
|
2KB
|
60 lines
Attribute VB_Name = "Module2"
' THis module contains all of the WAVE declares and constants.
' Author: Matt Gillmore (SCO_STINKS@YAHOO.com)
Option Explicit
Type WaveFormatEx
FormatTag As Integer
Channels As Integer
SamplesPerSec As Long
AvgBytesPerSec As Long
BlockAlign As Integer
BitsPerSample As Integer
ExtraDataSize As Integer
End Type
Type WaveHdr
lpData As Long
dwBufferLength As Long
dwBytesRecorded As Long
dwUser As Long
dwFlags As Long
dwLoops As Long
lpNext As Long
reserved As Long
End Type
Type Stereo
L As Integer
R As Integer
End Type
Type FFTStereo
L As Single
R As Single
End Type
Type WavBuf
Hdr As WaveHdr
Arr(1023) As Stereo '23 msec (43Hz and 4 kB Size)
FFT(1023) As FFTStereo
End Type
Type WaveInCaps
ManufacturerID As Integer 'wMid
ProductID As Integer 'wPid
DriverVersion As Long 'MMVERSIONS vDriverVersion
ProductName(31) As Byte 'szPname[MAXPNAMELEN]
Formats As Long
Channels As Integer
reserved As Integer
End Type
Public Const WAVE_INVALIDFORMAT = &H0& '/* invalid format */
Public Const WAVE_FORMAT_1M08 = &H1& '/* 11.025 kHz, Mono, 8-bit
Public Const WAVE_FORMAT_1S08 = &H2& '/* 11.025 kHz, Stereo, 8-bit
Public Const WAVE_FORMAT_1M16 = &H4& '/* 11.025 kHz, Mono, 16-bit
Public Const WAVE_FORMAT_1S16 = &H8& '/* 11.025 kHz, Stereo, 16-bit
Public Const WAVE_FORMAT_2M08 = &H10& '/* 22.0Q16-bit
Public Const WAVE_FORMAT_ E