From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/replicant/file/FileDecoder.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Src/replicant/file/FileDecoder.h (limited to 'Src/replicant/file/FileDecoder.h') diff --git a/Src/replicant/file/FileDecoder.h b/Src/replicant/file/FileDecoder.h new file mode 100644 index 00000000..2ac59fd6 --- /dev/null +++ b/Src/replicant/file/FileDecoder.h @@ -0,0 +1,18 @@ +#pragma once +#include "decode/svc_decode.h" +#include "nswasabi/ServiceName.h" + +// {F07160ED-2820-4DA5-9CE9-857A4CD9DFA0} +static const GUID file_decoder_guid = +{ 0xf07160ed, 0x2820, 0x4da5, { 0x9c, 0xe9, 0x85, 0x7a, 0x4c, 0xd9, 0xdf, 0xa0 } }; + +class FileDecoderService : public svc_decode +{ +public: + WASABI_SERVICE_NAME("File Decoder"); + WASABI_SERVICE_GUID(file_decoder_guid); + +private: + int WASABICALL DecodeService_CreateAudioDecoder_Callback(unsigned int pass, ifc_audio_decoder_callback **decoder, nx_uri_t filename, nsaudio::Parameters *parameters, int flags); + int WASABICALL DecodeService_CreateAudioDecoder_Pull(unsigned int pass, ifc_audio_decoder_pull **decoder, nx_uri_t filename, nsaudio::Parameters *parameters, int flags); +}; \ No newline at end of file -- cgit