FreeRDP
rdpsnd_oss.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/string.h>
#include <winpr/cmdline.h>
#include <winpr/sysinfo.h>
#include <winpr/collections.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <unistd.h>
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <freerdp/types.h>
#include <freerdp/settings.h>
#include <freerdp/channels/log.h>
#include "rdpsnd_main.h"

Macros

#define OSS_LOG_ERR(_text, _error)
 

Functions

static int rdpsnd_oss_get_format (const AUDIO_FORMAT *format)
 
static BOOL rdpsnd_oss_format_supported (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format)
 
static BOOL rdpsnd_oss_set_format (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format, UINT32 latency)
 
static void rdpsnd_oss_open_mixer (rdpsndOssPlugin *oss)
 
static BOOL rdpsnd_oss_open (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format, UINT32 latency)
 
static void rdpsnd_oss_close (rdpsndDevicePlugin *device)
 
static void rdpsnd_oss_free (rdpsndDevicePlugin *device)
 
static UINT32 rdpsnd_oss_get_volume (rdpsndDevicePlugin *device)
 
static BOOL rdpsnd_oss_set_volume (rdpsndDevicePlugin *device, UINT32 value)
 
static UINT rdpsnd_oss_play (rdpsndDevicePlugin *device, const BYTE *data, size_t size)
 
static int rdpsnd_oss_parse_addin_args (rdpsndDevicePlugin *device, const ADDIN_ARGV *args)
 
UINT oss_freerdp_rdpsnd_client_subsystem_entry (PFREERDP_RDPSND_DEVICE_ENTRY_POINTS pEntryPoints)
 

Macro Definition Documentation

◆ OSS_LOG_ERR

#define OSS_LOG_ERR (   _text,
  _error 
)
Value:
do \
{ \
if (_error != 0) \
WLog_ERR(TAG, "%s: %i - %s", _text, _error, strerror(_error)); \
} while (0)
#define TAG
Definition: client/ainput_main.c:39

Function Documentation

◆ oss_freerdp_rdpsnd_client_subsystem_entry()

UINT oss_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_oss_close()

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

◆ rdpsnd_oss_format_supported()

static BOOL rdpsnd_oss_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_oss_free()

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

◆ rdpsnd_oss_get_format()

static int rdpsnd_oss_get_format ( const AUDIO_FORMAT format)
static
Here is the caller graph for this function:

◆ rdpsnd_oss_get_volume()

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

◆ rdpsnd_oss_open()

static BOOL rdpsnd_oss_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_oss_open_mixer()

static void rdpsnd_oss_open_mixer ( rdpsndOssPlugin *  oss)
static
Here is the caller graph for this function:

◆ rdpsnd_oss_parse_addin_args()

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

◆ rdpsnd_oss_play()

static UINT rdpsnd_oss_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_oss_set_format()

static BOOL rdpsnd_oss_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_oss_set_volume()

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