-
Notifications
You must be signed in to change notification settings - Fork 0
/
R128MakerUnit.h
81 lines (61 loc) · 1.95 KB
/
R128MakerUnit.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
//---------------------------------------------------------------------------
#ifndef R128MakerUnitH
#define R128MakerUnitH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "Storage.h"
#include "sndfile.h"
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TMemo *OutputMemo;
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
void __fastcall OutputMemoDblClick(TObject *Sender);
private: // User declarations
TStorage* FStorage;
// Flag to color interface according to success.
bool FAllIsFine;
float FRefLevel;
float FAllowedDeviation;
float FTruePeakLevel;
int FBufferSize;
bool FOversample;
int FOversampleMethod;
bool FDoNotCheckAgain;
bool FSkipOversample;
float FSkipPeak;
int FPriority;
void AddSettings(HWND Window);
void Gain(const AnsiString Filename, const float dB);
void LoadSettings();
void Process(const AnsiString Filename);
void ReportSettings();
void SetPriority(const int Priority);
AnsiString SndFileError(SNDFILE*);
void Stats
(
const AnsiString Filename,
float& LUFS,
float& Peak,
int& Channels,
int& Samplerate,
const bool Oversample
);
void __fastcall WmDropFiles(TWMDropFiles& Message);
void __fastcall WMSysCommand(TMessage& Message);
public: // User declarations
__fastcall TForm1(TComponent* Owner);
// Message map to intercept Windows messages.
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_DROPFILES, TWMDropFiles, WmDropFiles)
MESSAGE_HANDLER(WM_SYSCOMMAND, TMessage, WMSysCommand)
END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif