FreeRDP
audin_alsa.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/cmdline.h>
#include <winpr/wlog.h>
#include <alsa/asoundlib.h>
#include <freerdp/addin.h>
#include <freerdp/channels/rdpsnd.h>
#include "audin_main.h"

Macros

#define freerdp_audin_client_subsystem_entry   FREERDP_API freerdp_audin_client_subsystem_entry
 

Functions

static snd_pcm_format_t audin_alsa_format (UINT32 wFormatTag, UINT32 bitPerChannel)
 
static BOOL audin_alsa_set_params (AudinALSADevice *alsa, snd_pcm_t *capture_handle)
 
static DWORD WINAPI audin_alsa_thread_func (LPVOID arg)
 
static UINT audin_alsa_free (IAudinDevice *device)
 
static BOOL audin_alsa_format_supported (IAudinDevice *device, const AUDIO_FORMAT *format)
 
static UINT audin_alsa_set_format (IAudinDevice *device, const AUDIO_FORMAT *format, UINT32 FramesPerPacket)
 
static UINT audin_alsa_open (IAudinDevice *device, AudinReceive receive, void *user_data)
 
static UINT audin_alsa_close (IAudinDevice *device)
 
static UINT audin_alsa_parse_addin_args (AudinALSADevice *device, const ADDIN_ARGV *args)
 
UINT freerdp_audin_client_subsystem_entry (PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEntryPoints)
 

Macro Definition Documentation

◆ freerdp_audin_client_subsystem_entry

#define freerdp_audin_client_subsystem_entry   FREERDP_API freerdp_audin_client_subsystem_entry

Function Documentation

◆ audin_alsa_close()

static UINT audin_alsa_close ( IAudinDevice *  device)
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:

◆ audin_alsa_format()

static snd_pcm_format_t audin_alsa_format ( UINT32  wFormatTag,
UINT32  bitPerChannel 
)
static
Here is the caller graph for this function:

◆ audin_alsa_format_supported()

static BOOL audin_alsa_format_supported ( IAudinDevice *  device,
const AUDIO_FORMAT format 
)
static
Here is the caller graph for this function:

◆ audin_alsa_free()

static UINT audin_alsa_free ( IAudinDevice *  device)
static

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the caller graph for this function:

◆ audin_alsa_open()

static UINT audin_alsa_open ( IAudinDevice *  device,
AudinReceive  receive,
void *  user_data 
)
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:

◆ audin_alsa_parse_addin_args()

static UINT audin_alsa_parse_addin_args ( AudinALSADevice *  device,
const ADDIN_ARGV *  args 
)
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:

◆ audin_alsa_set_format()

static UINT audin_alsa_set_format ( IAudinDevice *  device,
const AUDIO_FORMAT format,
UINT32  FramesPerPacket 
)
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:

◆ audin_alsa_set_params()

static BOOL audin_alsa_set_params ( AudinALSADevice *  alsa,
snd_pcm_t *  capture_handle 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audin_alsa_thread_func()

static DWORD WINAPI audin_alsa_thread_func ( LPVOID  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_audin_client_subsystem_entry()

UINT freerdp_audin_client_subsystem_entry ( PFREERDP_AUDIN_DEVICE_ENTRY_POINTS  pEntryPoints)

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the call graph for this function: