GainLayer.h 682 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef NULLSOFT_GAIN_LAYER_H
  2. #define NULLSOFT_GAIN_LAYER_H
  3. #include "WMHandler.h"
  4. #include "AudioFormat.h"
  5. #include "WMInformation.h"
  6. class GainLayer : public WMHandler
  7. {
  8. public:
  9. GainLayer(AudioFormat *_audio, WMInformation *_info)
  10. : audio(_audio), info(_info), enabled(false), replayGain(1.0f),
  11. floatData(0),floatSize(0), outData(0), outSize(0)
  12. {}
  13. ~GainLayer()
  14. {
  15. delete[]floatData;
  16. delete[]outData;
  17. }
  18. void AudioDataReceived(void *_data, unsigned long sizeBytes, DWORD timestamp);
  19. void Opened();
  20. AudioFormat *audio;
  21. WMInformation *info;
  22. bool enabled;
  23. float replayGain;
  24. float *floatData;
  25. size_t floatSize;
  26. void *outData;
  27. size_t outSize;
  28. };
  29. #endif