1
0

ifc_audio_decoder_packet.h 741 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. #include "nx/nxuri.h"
  4. #include "metadata/ifc_metadata.h"
  5. class ifc_audio_decoder_packet : public Wasabi2::Dispatchable
  6. {
  7. protected:
  8. ifc_audio_decoder_packet() : Dispatchable(DISPATCHABLE_VERSION) {}
  9. ~ifc_audio_decoder_packet() {}
  10. public:
  11. int GetMetadata(ifc_metadata **metadata) { return AudioDecoderPacket_GetMetadata(metadata); }
  12. int Decode(void **out_packet, size_t *frames_available) { return AudioDecoderPacket_Decode(out_packet, frames_available); }
  13. enum
  14. {
  15. DISPATCHABLE_VERSION=0,
  16. };
  17. private:
  18. virtual int WASABICALL AudioDecoderPacket_GetMetadata(ifc_metadata **metadata)=0;
  19. virtual int WASABICALL AudioDecoderPacket_Decode(void **out_packet, size_t *frames_available)=0;
  20. };