FreeRDP
audin_pulse.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/cmdline.h>
#include <winpr/wlog.h>
#include <pulse/pulseaudio.h>
#include <freerdp/types.h>
#include <freerdp/addin.h>
#include <freerdp/freerdp.h>
#include <freerdp/codec/audio.h>
#include <freerdp/client/audin.h>
#include "audin_main.h"

Functions

static const char * pulse_context_state_string (pa_context_state_t state)
 
static const char * pulse_stream_state_string (pa_stream_state_t state)
 
static void audin_pulse_context_state_callback (pa_context *context, void *userdata)
 
static UINT audin_pulse_connect (IAudinDevice *device)
 
static UINT audin_pulse_free (IAudinDevice *device)
 
static BOOL audin_pulse_format_supported (IAudinDevice *device, const AUDIO_FORMAT *format)
 
static UINT audin_pulse_set_format (IAudinDevice *device, const AUDIO_FORMAT *format, UINT32 FramesPerPacket)
 
static void audin_pulse_stream_state_callback (pa_stream *stream, void *userdata)
 
static void audin_pulse_stream_request_callback (pa_stream *stream, size_t length, void *userdata)
 
static UINT audin_pulse_close (IAudinDevice *device)
 
static UINT audin_pulse_open (IAudinDevice *device, AudinReceive receive, void *user_data)
 
static UINT audin_pulse_parse_addin_args (AudinPulseDevice *device, const ADDIN_ARGV *args)
 
 FREERDP_ENTRY_POINT (UINT pulse_freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEntryPoints))
 

Function Documentation

◆ audin_pulse_close()

static UINT audin_pulse_close ( IAudinDevice *  device)
static

Function description

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

◆ audin_pulse_connect()

static UINT audin_pulse_connect ( 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_pulse_context_state_callback()

static void audin_pulse_context_state_callback ( pa_context *  context,
void *  userdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audin_pulse_format_supported()

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

◆ audin_pulse_free()

static UINT audin_pulse_free ( 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_pulse_open()

static UINT audin_pulse_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_pulse_parse_addin_args()

static UINT audin_pulse_parse_addin_args ( AudinPulseDevice *  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_pulse_set_format()

static UINT audin_pulse_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 caller graph for this function:

◆ audin_pulse_stream_request_callback()

static void audin_pulse_stream_request_callback ( pa_stream *  stream,
size_t  length,
void *  userdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ audin_pulse_stream_state_callback()

static void audin_pulse_stream_state_callback ( pa_stream *  stream,
void *  userdata 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FREERDP_ENTRY_POINT()

FREERDP_ENTRY_POINT ( UINT   pulse_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:

◆ pulse_context_state_string()

static const char* pulse_context_state_string ( pa_context_state_t  state)
static
Here is the caller graph for this function:

◆ pulse_stream_state_string()

static const char* pulse_stream_state_string ( pa_stream_state_t  state)
static
Here is the caller graph for this function: