FreeRDP
audin_oss.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/string.h>
#include <winpr/thread.h>
#include <winpr/cmdline.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <unistd.h>
#include <oss-includes.h>
#include <sys/ioctl.h>
#include <freerdp/freerdp.h>
#include <freerdp/addin.h>
#include <freerdp/channels/rdpsnd.h>
#include "audin_main.h"

Macros

#define OSS_LOG_ERR(_text, _error)
 

Functions

static UINT32 audin_oss_get_format (const AUDIO_FORMAT *format)
 
static BOOL audin_oss_format_supported (IAudinDevice *device, const AUDIO_FORMAT *format)
 
static UINT audin_oss_set_format (IAudinDevice *device, const AUDIO_FORMAT *format, UINT32 FramesPerPacket)
 
static DWORD WINAPI audin_oss_thread_func (LPVOID arg)
 
static UINT audin_oss_open (IAudinDevice *device, AudinReceive receive, void *user_data)
 
static UINT audin_oss_close (IAudinDevice *device)
 
static UINT audin_oss_free (IAudinDevice *device)
 
static UINT audin_oss_parse_addin_args (AudinOSSDevice *device, const ADDIN_ARGV *args)
 
 FREERDP_ENTRY_POINT (UINT oss_freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEntryPoints))
 

Macro Definition Documentation

◆ OSS_LOG_ERR

#define OSS_LOG_ERR (   _text,
  _error 
)
Value:
do \
{ \
if ((_error) != 0) \
{ \
char buffer[256] = { 0 }; \
WLog_ERR(TAG, "%s: %i - %s\n", (_text), (_error), \
winpr_strerror((_error), buffer, sizeof(buffer))); \
} \
} while (0)
#define TAG
Definition: client/ainput_main.c:39
WINPR_API char * winpr_strerror(DWORD dw, char *dmsg, size_t size)
Definition: debug.c:225

Function Documentation

◆ audin_oss_close()

static UINT audin_oss_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_oss_format_supported()

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

◆ audin_oss_free()

static UINT audin_oss_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_oss_get_format()

static UINT32 audin_oss_get_format ( const AUDIO_FORMAT format)
static
Here is the caller graph for this function:

◆ audin_oss_open()

static UINT audin_oss_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_oss_parse_addin_args()

static UINT audin_oss_parse_addin_args ( AudinOSSDevice *  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_oss_set_format()

static UINT audin_oss_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_oss_thread_func()

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

◆ FREERDP_ENTRY_POINT()

FREERDP_ENTRY_POINT ( UINT   oss_freerdp_audin_client_subsystem_entryPFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEntryPoints)

Function description

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