Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Input/in_wmvdrm/GainLayer.h

32 lines
682 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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