23 #include <freerdp/config.h>
28 #include "mf_interface.h"
30 #include <freerdp/server/server-common.h>
31 #include <freerdp/log.h>
32 #define TAG SERVER_TAG("mac")
34 static UINT mf_peer_audin_data(audin_server_context* audin,
const SNDIN_DATA* data)
40 WLog_WARN(TAG,
"not implemented");
41 WLog_DBG(TAG,
"receive %" PRIdz
" bytes.", Stream_Length(data->Data));
45 BOOL mf_peer_audin_init(mfPeerContext* context)
47 WINPR_ASSERT(context);
49 context->audin = audin_server_context_new(context->vcm);
50 context->audin->rdpcontext = &context->_p;
51 context->audin->userdata = context;
53 context->audin->Data = mf_peer_audin_data;
55 return audin_server_set_formats(context->audin, -1, NULL);
58 void mf_peer_audin_uninit(mfPeerContext* context)
60 WINPR_ASSERT(context);
62 audin_server_context_free(context->audin);
63 context->audin = NULL;