1
0

svc_filedecode.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. #include "audio/parameters.h"
  4. #include "audio/ifc_audio_decoder_callback.h"
  5. #include "audio/ifc_audio_decoder_pull.h"
  6. #include "nx/nxuri.h"
  7. #include "nx/nxfile.h"
  8. #include "foundation/error.h"
  9. #include "decode/svc_decode.h"
  10. // {5F8FD642-9346-4400-803F-A20F342916FD}
  11. static const GUID filedecode_service_type_guid =
  12. { 0x5f8fd642, 0x9346, 0x4400, { 0x80, 0x3f, 0xa2, 0xf, 0x34, 0x29, 0x16, 0xfd } };
  13. class NOVTABLE svc_filedecode : public Wasabi2::Dispatchable
  14. {
  15. protected:
  16. svc_filedecode() : Dispatchable(DISPATCHABLE_VERSION) {}
  17. ~svc_filedecode() {}
  18. public:
  19. static GUID GetServiceType() { return filedecode_service_type_guid; }
  20. ns_error_t CreateAudioDecoder_Callback(ifc_audio_decoder_callback **decoder, nx_uri_t filename, nx_file_t file, ifc_metadata *parent_metadata, nsaudio::Parameters *parameters, int flags) { return FileDecodeService_CreateAudioDecoder_Callback(decoder, filename, file, parent_metadata, parameters, flags); }
  21. enum
  22. {
  23. DISPATCHABLE_VERSION=0,
  24. };
  25. protected:
  26. virtual ns_error_t WASABICALL FileDecodeService_CreateAudioDecoder_Callback(ifc_audio_decoder_callback **decoder, nx_uri_t filename, nx_file_t file, ifc_metadata *parent_metadata, nsaudio::Parameters *parameters, int flags)=0;
  27. };