X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fptformat%2Fptformat%2Fptfformat.h;h=72dc64c715df88dbff948a0ac293e6f6855532ec;hb=6c8abb26c8419ec749b4dbce502d5df1e1b0585e;hp=933d2be56e69d2bb308f57f01380c4868a36838a;hpb=f28ccd5e3a1350e09a1bf9ee0734db9b2e5db315;p=ardour.git diff --git a/libs/ptformat/ptformat/ptfformat.h b/libs/ptformat/ptformat/ptfformat.h index 933d2be56e..72dc64c715 100644 --- a/libs/ptformat/ptformat/ptfformat.h +++ b/libs/ptformat/ptformat/ptfformat.h @@ -153,12 +153,18 @@ public: unsigned char c1; unsigned char *ptfunxored; uint64_t len; + bool is_bigendian; private: bool jumpback(uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen); bool jumpto(uint32_t *currpos, unsigned char *buf, const uint32_t maxoffset, const unsigned char *needle, const uint32_t needlelen); bool foundin(std::string haystack, std::string needle); int64_t foundat(unsigned char *haystack, uint64_t n, const char *needle); + uint16_t u_endian_read2(unsigned char *buf, bool); + uint32_t u_endian_read3(unsigned char *buf, bool); + uint32_t u_endian_read4(unsigned char *buf, bool); + uint64_t u_endian_read5(unsigned char *buf, bool); + int parse(void); bool parse_version(); uint8_t gen_xor_delta(uint8_t xor_value, uint8_t mul, bool negative); @@ -182,6 +188,7 @@ private: std::vector actualwavs; float ratefactor; std::string extension; + uint32_t upto; };