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/BufferLayer.h
2024-09-24 14:54:57 +02:00

26 lines
457 B
C++

#ifndef NULLSOFT_BUFFERLAYERH
#define NULLSOFT_BUFFERLAYERH
#include "WMHandler.h"
class BufferLayer : public WMHandler
{
public:
BufferLayer(IWMReader *reader);
~BufferLayer();
protected:
void BufferingStarted();
void BufferingStopped();
void OpenFailed();
private:
static DWORD WINAPI BufThread_stub(void *ptr);
void BufThread();
int Wait();
HANDLE events[2];
IWMReaderAdvanced2 *reader2;
HANDLE thread;
volatile bool buffering;
};
#endif