mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-11 21:01:00 -05:00
26 lines
457 B
C
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
|