ifc_raw_media_reader.h 611 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. class ifc_raw_media_reader : public Wasabi2::Dispatchable
  4. {
  5. protected:
  6. ifc_raw_media_reader() : Wasabi2::Dispatchable(DISPATCHABLE_VERSION) {}
  7. ~ifc_raw_media_reader() {}
  8. public:
  9. int Read(void *buffer, size_t buffer_size, size_t *bytes_read) { return RawMediaReader_Read(buffer, buffer_size, bytes_read); }
  10. /* TODO: we'll probably need stuff in here like EndOfFile, determining a good buffer size, etc */
  11. enum
  12. {
  13. DISPATCHABLE_VERSION=0,
  14. };
  15. protected:
  16. virtual int WASABICALL RawMediaReader_Read(void *buffer, size_t buffer_size, size_t *bytes_read)=0;
  17. };