ExtendedRead.h 636 B

123456789101112131415161718192021222324252627282930
  1. #ifndef NULLSOFT_IN_WMVDRM_EXTENDEDREAD_H
  2. #define NULLSOFT_IN_WMVDRM_EXTENDEDREAD_H
  3. #include "AudioFormat.h"
  4. #include "../Agave/DecodeFile/ifc_audiostream.h"
  5. #include "main.h"
  6. struct ExtendedReadStruct : public AudioFormat, public ifc_audiostream
  7. {
  8. public:
  9. ExtendedReadStruct();
  10. ExtendedReadStruct(IWMSyncReader *_reader);
  11. ~ExtendedReadStruct();
  12. bool Open(const wchar_t *filename);
  13. bool FindOutput(int bits, int channels);
  14. size_t ReadAudio(void *buffer, size_t sizeBytes);
  15. IWMSyncReader *reader;
  16. WORD streamNum;
  17. INSSBuffer *buffer;
  18. size_t bufferUsed;
  19. bool endOfFile;
  20. QWORD length;
  21. protected:
  22. RECVS_DISPATCH;
  23. };
  24. #endif