FreeRDP
audin.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/stream.h>
#include <freerdp/codec/dsp.h>
#include <freerdp/codec/audio.h>
#include <freerdp/channels/wtsvc.h>
#include <freerdp/server/audin.h>
#include <freerdp/channels/log.h>

Macros

#define TAG   CHANNELS_TAG("audin.server")
 
#define MSG_SNDIN_VERSION   0x01
 
#define MSG_SNDIN_FORMATS   0x02
 
#define MSG_SNDIN_OPEN   0x03
 
#define MSG_SNDIN_OPEN_REPLY   0x04
 
#define MSG_SNDIN_DATA_INCOMING   0x05
 
#define MSG_SNDIN_DATA   0x06
 
#define MSG_SNDIN_FORMATCHANGE   0x07
 

Functions

static UINT audin_server_select_format (audin_server_context *context, size_t client_format_index)
 
static UINT audin_server_send_version (audin_server *audin, wStream *s)
 
static UINT audin_server_recv_version (audin_server *audin, wStream *s, UINT32 length)
 
static UINT audin_server_send_formats (audin_server *audin, wStream *s)
 
static UINT audin_server_recv_formats (audin_server *audin, wStream *s, UINT32 length)
 
static UINT audin_server_send_open (audin_server *audin, wStream *s)
 
static UINT audin_server_recv_open_reply (audin_server *audin, wStream *s, UINT32 length)
 
static UINT audin_server_recv_data (audin_server *audin, wStream *s, UINT32 length)
 
static DWORD WINAPI audin_server_thread_func (LPVOID arg)
 
static BOOL audin_server_open (audin_server_context *context)
 
static BOOL audin_server_is_open (audin_server_context *context)
 
static BOOL audin_server_close (audin_server_context *context)
 
audin_server_context * audin_server_context_new (HANDLE vcm)
 
void audin_server_context_free (audin_server_context *context)
 

Macro Definition Documentation

#define MSG_SNDIN_DATA   0x06
#define MSG_SNDIN_DATA_INCOMING   0x05
#define MSG_SNDIN_FORMATCHANGE   0x07
#define MSG_SNDIN_FORMATS   0x02
#define MSG_SNDIN_OPEN   0x03
#define MSG_SNDIN_OPEN_REPLY   0x04
#define MSG_SNDIN_VERSION   0x01
#define TAG   CHANNELS_TAG("audin.server")

FreeRDP: A Remote Desktop Protocol Implementation Server Audio Input Virtual Channel

Copyright 2012 Vic Lee Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

static BOOL audin_server_close ( audin_server_context *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void audin_server_context_free ( audin_server_context *  context)

Here is the call graph for this function:

Here is the caller graph for this function:

audin_server_context* audin_server_context_new ( HANDLE  vcm)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL audin_server_is_open ( audin_server_context *  context)
static

Here is the caller graph for this function:

static BOOL audin_server_open ( audin_server_context *  context)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_server_recv_data ( audin_server *  audin,
wStream *  s,
UINT32  length 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_server_recv_formats ( audin_server *  audin,
wStream *  s,
UINT32  length 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_server_recv_open_reply ( audin_server *  audin,
wStream *  s,
UINT32  length 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the caller graph for this function:

static UINT audin_server_recv_version ( audin_server *  audin,
wStream *  s,
UINT32  length 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the caller graph for this function:

static UINT audin_server_select_format ( audin_server_context *  context,
size_t  client_format_index 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_server_send_formats ( audin_server *  audin,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_server_send_open ( audin_server *  audin,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT audin_server_send_version ( audin_server *  audin,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static DWORD WINAPI audin_server_thread_func ( LPVOID  arg)
static

Here is the call graph for this function:

Here is the caller graph for this function: