-
Notifications
You must be signed in to change notification settings - Fork 0
/
autorec_recorderframe.~h
106 lines (94 loc) · 2.97 KB
/
autorec_recorderframe.~h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
//---------------------------------------------------------------------------
#ifndef autorec_recorderframeH
#define autorec_recorderframeH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "c:\DXSDK\Include\dshow.h"
#include "c:\DXSDK\Include\ks.h"
#include "c:\DXSDK\Include\ksmedia.h"
#include "c:\DXSDK\Include\uuids.h"
#include <stdio.h>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include "c:\DXSDK\Include\strmif.h"
#include "c:\DXSDK\Include\qedit.h"
#include <Graphics.hpp>
#define _BLADEDLL
#include "blade_enc.h"
#include "grtdxutils.h"
#include "grtvumeter.h"
#include "gsockets.h"
#include "winsock2.h"
#include "ds1_recordingthread.h"
#include "ds1_encoderthread.h"
#include "ds1_mp3savethread.h"
//---------------------------------------------------------------------------
const AnsiString filenameformat = "yyyy-mm-dd_hh-nn-ss";
//---------------------------------------------------------------------------
class Tmp3record : public TFrame
{
__published: // IDE-managed Components
TButton *Button1;
TButton *Button2;
TButton *Button3;
TTimer *Timer1;
TButton *Button4;
TImage *Image1;
TLabel *Label1;
TLabel *SignalIndicator;
TLabel *StatusIndicator;
TTimer *Timer2;
void __fastcall Button3Click(TObject *Sender);
void __fastcall Timer1Timer(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall Button2Click(TObject *Sender);
void __fastcall Button4Click(TObject *Sender);
void __fastcall Timer2Timer(TObject *Sender);
private: // User declarations
public: // User declarations
int ConfigNumber;
IGraphBuilder *FL;
IMediaControl *MC;
IMediaSeeking *MS;
ISampleGrabber *sgGrabber;
IBaseFilter *Source;
IBaseFilter *bfSampleGrabber;
IDirectSoundCapture *CapDS;
tRecordThread *RT;
tEncoderThread *EN;
tSaveThread *SV;
AnsiString InputDeviceGuid;
AnsiString InputDeviceName;
AnsiString mp3dir;
AnsiString mp3dir2;
DWORD dwSampleRate;
WORD wBitRate;
int deletedays;
int pgl, pgr;
TDateTime LastSignal;
int Status;
TStringList *Changes;
int LastTme;
VUMeter *VU;
bool email_do;
AnsiString email_from;
AnsiString email_rcpt;
AnsiString email_smtp;
bool http_do;
AnsiString http_url;
__fastcall Tmp3record(TComponent* Owner);
void __fastcall SendAlert(AnsiString txt, int code);
void __fastcall Dirdelete(AnsiString dir, AnsiString limit);
__fastcall Free();
__fastcall LoadConfig(int aconfignumber);
__fastcall Start();
__fastcall Stop();
};
//---------------------------------------------------------------------------
extern PACKAGE Tmp3record *mp3record;
//---------------------------------------------------------------------------
#endif