21 #ifndef FREERDP_CHANNEL_RDPSND_CLIENT_RDPSND_H
22 #define FREERDP_CHANNEL_RDPSND_CLIENT_RDPSND_H
24 #include <freerdp/channels/rdpsnd.h>
25 #include <freerdp/settings.h>
35 typedef struct rdpsnd_plugin rdpsndPlugin;
39 typedef BOOL (*pcFormatSupported)(rdpsndDevicePlugin* device,
const AUDIO_FORMAT* format);
40 typedef BOOL (*pcOpen)(rdpsndDevicePlugin* device,
const AUDIO_FORMAT* format, UINT32 latency);
41 typedef UINT32 (*pcGetVolume)(rdpsndDevicePlugin* device);
42 typedef BOOL (*pcSetVolume)(rdpsndDevicePlugin* device, UINT32 value);
43 typedef UINT (*pcPlay)(rdpsndDevicePlugin* device,
const BYTE* data,
size_t size);
44 typedef UINT (*pcPlayEx)(rdpsndDevicePlugin* device,
const AUDIO_FORMAT* format,
45 const BYTE* data,
size_t size);
46 typedef void (*pcStart)(rdpsndDevicePlugin* device);
47 typedef void (*pcClose)(rdpsndDevicePlugin* device);
48 typedef void (*pcFree)(rdpsndDevicePlugin* device);
49 typedef BOOL (*pcDefaultFormat)(rdpsndDevicePlugin* device,
const AUDIO_FORMAT* desired,
51 typedef UINT (*pcServerFormatAnnounce)(rdpsndDevicePlugin* device,
const AUDIO_FORMAT* formats,
58 pcFormatSupported FormatSupported;
60 pcGetVolume GetVolume;
61 pcSetVolume SetVolume;
66 pcDefaultFormat DefaultFormat;
67 pcServerFormatAnnounce ServerFormatAnnounce;
71 #define RDPSND_DEVICE_EXPORT_FUNC_NAME "freerdp_rdpsnd_client_subsystem_entry"
73 typedef void (*PREGISTERRDPSNDDEVICE)(rdpsndPlugin* rdpsnd, rdpsndDevicePlugin* device);
78 PREGISTERRDPSNDDEVICE pRegisterRdpsndDevice;
83 typedef UINT(VCAPITYPE* PFREERDP_RDPSND_DEVICE_ENTRY)(
86 FREERDP_API rdpContext* freerdp_rdpsnd_get_context(rdpsndPlugin* plugin);