From 3f62a9176c71cff4f57e2325d282f1add4e8f537 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 19 Sep 2013 12:01:14 +0200 Subject: [PATCH] Added audiotrack support to rdpsnd. --- channels/rdpsnd/client/CMakeLists.txt | 4 ++++ channels/rdpsnd/client/rdpsnd_main.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/channels/rdpsnd/client/CMakeLists.txt b/channels/rdpsnd/client/CMakeLists.txt index d741fa76d..6d0c32806 100644 --- a/channels/rdpsnd/client/CMakeLists.txt +++ b/channels/rdpsnd/client/CMakeLists.txt @@ -58,3 +58,7 @@ endif() if(WITH_WINMM) add_channel_client_subsystem(${MODULE_PREFIX} ${CHANNEL_NAME} "winmm" "") endif() + +if(WITH_AUDIOTRACK) + add_channel_client_subsystem(${MODULE_PREFIX} ${CHANNEL_NAME} "audiotrack" "") +endif() diff --git a/channels/rdpsnd/client/rdpsnd_main.c b/channels/rdpsnd/client/rdpsnd_main.c index 5047ed76a..b7099726a 100644 --- a/channels/rdpsnd/client/rdpsnd_main.c +++ b/channels/rdpsnd/client/rdpsnd_main.c @@ -690,6 +690,13 @@ static void rdpsnd_process_connect(rdpSvcPlugin* plugin) rdpsnd_load_device_plugin(rdpsnd, rdpsnd->subsystem, args); } + if (!rdpsnd->device) + { + rdpsnd_set_subsystem(rdpsnd, "audiotrack"); + rdpsnd_set_device_name(rdpsnd, ""); + rdpsnd_load_device_plugin(rdpsnd, rdpsnd->subsystem, args); + } + if (!rdpsnd->device) { DEBUG_WARN("no sound device.");