FreeRDP
rdpsnd_opensles.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <winpr/crt.h>
#include <winpr/cmdline.h>
#include <winpr/sysinfo.h>
#include <winpr/collections.h>
#include <freerdp/types.h>
#include <freerdp/channels/log.h>
#include "opensl_io.h"
#include "rdpsnd_main.h"

Macros

#define freerdp_rdpsnd_client_subsystem_entry   FREERDP_API freerdp_rdpsnd_client_subsystem_entry
 

Functions

static int rdpsnd_opensles_volume_to_millibel (unsigned short level, int max)
 
static unsigned short rdpsnd_opensles_millibel_to_volume (int millibel, int max)
 
static bool rdpsnd_opensles_check_handle (const rdpsndopenslesPlugin *hdl)
 
static BOOL rdpsnd_opensles_set_volume (rdpsndDevicePlugin *device, UINT32 volume)
 
static int rdpsnd_opensles_set_params (rdpsndopenslesPlugin *opensles)
 
static BOOL rdpsnd_opensles_set_format (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format, UINT32 latency)
 
static BOOL rdpsnd_opensles_open (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format, UINT32 latency)
 
static void rdpsnd_opensles_close (rdpsndDevicePlugin *device)
 
static void rdpsnd_opensles_free (rdpsndDevicePlugin *device)
 
static BOOL rdpsnd_opensles_format_supported (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format)
 
static UINT32 rdpsnd_opensles_get_volume (rdpsndDevicePlugin *device)
 
static UINT rdpsnd_opensles_play (rdpsndDevicePlugin *device, const BYTE *data, size_t size)
 
static void rdpsnd_opensles_start (rdpsndDevicePlugin *device)
 
static int rdpsnd_opensles_parse_addin_args (rdpsndDevicePlugin *device, ADDIN_ARGV *args)
 
UINT freerdp_rdpsnd_client_subsystem_entry (PFREERDP_RDPSND_DEVICE_ENTRY_POINTS pEntryPoints)
 

Macro Definition Documentation

◆ freerdp_rdpsnd_client_subsystem_entry

#define freerdp_rdpsnd_client_subsystem_entry   FREERDP_API freerdp_rdpsnd_client_subsystem_entry

Function Documentation

◆ freerdp_rdpsnd_client_subsystem_entry()

UINT freerdp_rdpsnd_client_subsystem_entry ( PFREERDP_RDPSND_DEVICE_ENTRY_POINTS  pEntryPoints)

Function description

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

◆ rdpsnd_opensles_check_handle()

static bool rdpsnd_opensles_check_handle ( const rdpsndopenslesPlugin *  hdl)
static
Here is the caller graph for this function:

◆ rdpsnd_opensles_close()

static void rdpsnd_opensles_close ( rdpsndDevicePlugin *  device)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_format_supported()

static BOOL rdpsnd_opensles_format_supported ( rdpsndDevicePlugin *  device,
const AUDIO_FORMAT format 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_free()

static void rdpsnd_opensles_free ( rdpsndDevicePlugin *  device)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_get_volume()

static UINT32 rdpsnd_opensles_get_volume ( rdpsndDevicePlugin *  device)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_millibel_to_volume()

static unsigned short rdpsnd_opensles_millibel_to_volume ( int  millibel,
int  max 
)
static
Here is the caller graph for this function:

◆ rdpsnd_opensles_open()

static BOOL rdpsnd_opensles_open ( rdpsndDevicePlugin *  device,
const AUDIO_FORMAT format,
UINT32  latency 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_parse_addin_args()

static int rdpsnd_opensles_parse_addin_args ( rdpsndDevicePlugin *  device,
ADDIN_ARGV *  args 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_play()

static UINT rdpsnd_opensles_play ( rdpsndDevicePlugin *  device,
const BYTE data,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_set_format()

static BOOL rdpsnd_opensles_set_format ( rdpsndDevicePlugin *  device,
const AUDIO_FORMAT format,
UINT32  latency 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_set_params()

static int rdpsnd_opensles_set_params ( rdpsndopenslesPlugin *  opensles)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_set_volume()

static BOOL rdpsnd_opensles_set_volume ( rdpsndDevicePlugin *  device,
UINT32  volume 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_start()

static void rdpsnd_opensles_start ( rdpsndDevicePlugin *  device)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rdpsnd_opensles_volume_to_millibel()

static int rdpsnd_opensles_volume_to_millibel ( unsigned short  level,
int  max 
)
static
Here is the caller graph for this function: