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


//This Audio capture & recorder work with Win32 API. 
//This is a simple example of how work this API. 
//There are two clases, CAudioCap and CWaveFile. 
//This Code is free. 
//AUTHORS: Arturo Terrón Gonzalez. 
//         Rafael Ruiz Rubio. 
 
 
//--------------------------------------------------------------------------- 
#ifndef Unit1H 
#define Unit1H 
//--------------------------------------------------------------------------- 
#include <Classes.hpp> 
#include <Controls.hpp> 
#include <StdCtrls.hpp> 
#include <Forms.hpp> 
#include "AudioCap.h" 
#include "WaveFile.h" 
//--------------------------------------------------------------------------- 
class TForm1 : public TForm 
{ 
__published:	// IDE-managed Components 
   TButton *Start; 
   TButton *Stop; 
   TEdit *Edit1; 
   TLabel *Label1; 
   TComboBox *ComboBox1; 
   TComboBox *ComboBox2; 
   TLabel *Label2; 
   TLabel *Label3; 
   void __fastcall StartClick(TObject *Sender); 
   void __fastcall StopClick(TObject *Sender); 
   void __fastcall FormClose(TObject *Sender, TCloseAction &Action); 
  void __fastcall ComboBox1Change(TObject *Sender); 
  void __fastcall ComboBox2Change(TObject *Sender); 
  private:	// User declarations 
   CAudioCap *Audio; 
   DWORD m_Frecuencia; 
   DWORD m_Sample; 
public:		// User declarations 
   __fastcall TForm1(TComponent* Owner); 
}; 
//--------------------------------------------------------------------------- 
extern PACKAGE TForm1 *Form1; 
//--------------------------------------------------------------------------- 
#endif