BufferLayer.h 457 B

1234567891011121314151617181920212223242526
  1. #ifndef NULLSOFT_BUFFERLAYERH
  2. #define NULLSOFT_BUFFERLAYERH
  3. #include "WMHandler.h"
  4. class BufferLayer : public WMHandler
  5. {
  6. public:
  7. BufferLayer(IWMReader *reader);
  8. ~BufferLayer();
  9. protected:
  10. void BufferingStarted();
  11. void BufferingStopped();
  12. void OpenFailed();
  13. private:
  14. static DWORD WINAPI BufThread_stub(void *ptr);
  15. void BufThread();
  16. int Wait();
  17. HANDLE events[2];
  18. IWMReaderAdvanced2 *reader2;
  19. HANDLE thread;
  20. volatile bool buffering;
  21. };
  22. #endif