header_wav.h 601 B

123456789101112131415161718192021222324
  1. #ifndef NULLSOFT_IN_DSHOW_HEADER_WAV_H
  2. #define NULLSOFT_IN_DSHOW_HEADER_WAV_H
  3. #include <windows.h>
  4. #include "Header.h"
  5. class HeaderWav : public Header
  6. {
  7. public:
  8. HeaderWav(bool bAllowHttpConnection = false); // bAllowHttp will allow an http connection to read header info
  9. int getInfos(const wchar_t *filename, bool checkMetadata=false);
  10. unsigned __int32 read_dword() { unsigned __int32 v=0; myfread(&v,sizeof(v),1); return v; }
  11. private:
  12. HANDLE fh;
  13. bool bAllowHttp;
  14. size_t myfread( void *buffer, size_t size, size_t count);
  15. int myfclose();
  16. int myfseek(long offset, DWORD origin);
  17. };
  18. #endif