www.pudn.com > audiocapture.zip > AudioCap.h, change:2001-04-20,size:979b


//--------------------------------------------------------------------------- 
#ifndef AudioCapH 
#define AudioCapH 
 
#include <vfw.h> 
#include <process.h> 
#include "WaveFile.h" 
 
//Estructura que contiene los datos para pasar a la función callback. 
typedef struct 
{ 
  CWaveFile *WaveFile; 
  HWAVEIN   WaveIn; 
}DATACALLBACK; 
 
 
class CAudioCap 
{ 
  private: 
    HWAVEIN       m_WaveIn; 
    WAVEFORMATEX  m_Format; 
    WAVEHDR       m_WaveData; 
    WAVEINCAPS    m_Caps; 
    MMRESULT      m_hr; 
    byte          *m_Buffer; 
    DWORD         m_TamBuffer; 
    CWaveFile     *m_WaveFile; 
    DATACALLBACK  m_DatosCallback; 
    static void CALLBACK waveInProc(HWAVEIN hwi, UINT msg, DWORD dwInstance, DWORD Param1, DWORD Param2); 
  public: 
    CAudioCap(char *Nombre,DWORD FrecMuestreo,WORD Resolucion); 
    ~CAudioCap(); 
    void Start(); 
    void Stop(void); 
 
}; 
//--------------------------------------------------------------------------- 
#endif