blob: 6eb6c67d0e10e584612ab99dbb2d43f33908dba1 (
plain) (
blame)
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
|
#ifndef NULLSOFT_GAIN_LAYER_H
#define NULLSOFT_GAIN_LAYER_H
#include "WMHandler.h"
#include "AudioFormat.h"
#include "WMInformation.h"
class GainLayer : public WMHandler
{
public:
GainLayer(AudioFormat *_audio, WMInformation *_info)
: audio(_audio), info(_info), enabled(false), replayGain(1.0f),
floatData(0),floatSize(0), outData(0), outSize(0)
{}
~GainLayer()
{
delete[]floatData;
delete[]outData;
}
void AudioDataReceived(void *_data, unsigned long sizeBytes, DWORD timestamp);
void Opened();
AudioFormat *audio;
WMInformation *info;
bool enabled;
float replayGain;
float *floatData;
size_t floatSize;
void *outData;
size_t outSize;
};
#endif
|