20 #ifndef FREERDP_CHANNEL_TSMF_CLIENT_AUDIO_H
21 #define FREERDP_CHANNEL_TSMF_CLIENT_AUDIO_H
23 #include "tsmf_types.h"
30 BOOL (*Open)(ITSMFAudioDevice* audio,
const char* device);
33 (ITSMFAudioDevice* audio, UINT32 sample_rate, UINT32 channels, UINT32 bits_per_sample);
35 BOOL (*Play)(ITSMFAudioDevice* audio,
const BYTE* data, UINT32 data_size);
37 UINT64 (*GetLatency)(ITSMFAudioDevice* audio);
39 BOOL (*ChangeVolume)(ITSMFAudioDevice* audio, UINT32 newVolume, UINT32 muted);
41 BOOL (*Flush)(ITSMFAudioDevice* audio);
43 void (*Free)(ITSMFAudioDevice* audio);
46 #define TSMF_AUDIO_DEVICE_EXPORT_FUNC_NAME "TSMFAudioDeviceEntry"
47 typedef UINT(VCAPITYPE* TSMF_AUDIO_DEVICE_ENTRY)(ITSMFAudioDevice** dev);
49 ITSMFAudioDevice* tsmf_load_audio_device(
const char* name,
const char* device);