Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
26
Src/Plugins/Input/in_wmvdrm/BufferLayer.h
Normal file
26
Src/Plugins/Input/in_wmvdrm/BufferLayer.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue