BuildTools
Qt
Src
Agave
Components
Elevator
Mastering
Plugins
ReplayGainAnalysis
WAT
Wasabi
Wasabi2
Winamp
aacPlus
aacdec
aacdec-mft
adpcm
alac
albumart
apev2
auth
bmp
burnlib
codesign
config
devices
external_dependencies
f263
filereader
freetypewac
gif
gracenote
h264
h264dec
id3v2
ie_plugin
installer
jpeg
libvp6
libvpShared
mp3-mpg123
mp4v
mpeg4dec
nde
nprt_plugin
ns-eel
ns-eel2
nsavi
nsmkv
nsutil
nsv
nsvdec_vp3
nsvdec_vp5
nsvdec_vp6
nswasabi
nu
omBrowser
pcm
pfc
playlist
plist
png
replicant
Wasabi
application
audio
component
decode
file
FileDecoder.h
FileMetadata.h
FilePlayback.h
FileRawReader.h
api.h
ifc_filemetadata_editor.h
ifc_fileplayback.h
main.h
precomp.h
svc_filedecode.h
svc_filemetadata.h
svc_fileplayback.h
svc_filerawreader.h
filelock
foundation
http
icy
jnetlib
metadata
mp4
nsaac
nsapev2
nsid3v1
nsid3v2
nsmp3
nsmp3dec
nswasabi
nu
nx
ogg
player
replaygain
replicant
service
ssdp
syscb
ultravox
resources
tagz
tataki
theora
timer
vlb
vp32
vp6
vp8x
wbm
winampAll
winampa
xml
xspf
vcpkg-ports
.gitignore
LICENSE.md
README.md
automate-git.py
cef_x86.bat
install-packages.cmd
vcpkg_version_finder.py
winampAll_2019.sln
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
#pragma once
|
|
#include "foundation/dispatch.h"
|
|
#include "audio/parameters.h"
|
|
#include "audio/ifc_audio_decoder_callback.h"
|
|
#include "audio/ifc_audio_decoder_pull.h"
|
|
#include "nx/nxuri.h"
|
|
#include "nx/nxfile.h"
|
|
#include "foundation/error.h"
|
|
#include "decode/svc_decode.h"
|
|
|
|
// {5F8FD642-9346-4400-803F-A20F342916FD}
|
|
static const GUID filedecode_service_type_guid =
|
|
{ 0x5f8fd642, 0x9346, 0x4400, { 0x80, 0x3f, 0xa2, 0xf, 0x34, 0x29, 0x16, 0xfd } };
|
|
|
|
class NOVTABLE svc_filedecode : public Wasabi2::Dispatchable
|
|
{
|
|
protected:
|
|
svc_filedecode() : Dispatchable(DISPATCHABLE_VERSION) {}
|
|
~svc_filedecode() {}
|
|
|
|
public:
|
|
static GUID GetServiceType() { return filedecode_service_type_guid; }
|
|
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); }
|
|
|
|
enum
|
|
{
|
|
DISPATCHABLE_VERSION=0,
|
|
};
|
|
protected:
|
|
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;
|
|
};
|
|
|