FreeRDP
tsmf_oss.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <winpr/crt.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <freerdp/types.h>
#include <freerdp/codec/dsp.h>
#include "tsmf_audio.h"

Macros

#define OSS_LOG_ERR(_text, _error)
 
#define freerdp_tsmf_client_audio_subsystem_entry   FREERDP_API freerdp_tsmf_client_audio_subsystem_entry
 

Functions

static BOOL tsmf_oss_open (ITSMFAudioDevice *audio, const char *device)
 
static BOOL tsmf_oss_set_format (ITSMFAudioDevice *audio, UINT32 sample_rate, UINT32 channels, UINT32 bits_per_sample)
 
static BOOL tsmf_oss_play (ITSMFAudioDevice *audio, const BYTE *data, UINT32 data_size)
 
static UINT64 tsmf_oss_get_latency (ITSMFAudioDevice *audio)
 
static BOOL tsmf_oss_flush (ITSMFAudioDevice *audio)
 
static void tsmf_oss_free (ITSMFAudioDevice *audio)
 
ITSMFAudioDevice * freerdp_tsmf_client_audio_subsystem_entry (void)
 

Macro Definition Documentation

#define freerdp_tsmf_client_audio_subsystem_entry   FREERDP_API freerdp_tsmf_client_audio_subsystem_entry
#define OSS_LOG_ERR (   _text,
  _error 
)
Value:
if (_error != 0) \
WLog_ERR(TAG, "%s: %i - %s", _text, _error, strerror(_error));
#define TAG
Definition: audin_main.h:33
#define WLog_ERR(tag,...)
Definition: include/winpr/wlog.h:158

Function Documentation

ITSMFAudioDevice* freerdp_tsmf_client_audio_subsystem_entry ( void  )

Here is the call graph for this function:

static BOOL tsmf_oss_flush ( ITSMFAudioDevice *  audio)
static

Here is the caller graph for this function:

static void tsmf_oss_free ( ITSMFAudioDevice *  audio)
static

Here is the caller graph for this function:

static UINT64 tsmf_oss_get_latency ( ITSMFAudioDevice *  audio)
static

Here is the caller graph for this function:

static BOOL tsmf_oss_open ( ITSMFAudioDevice *  audio,
const char *  device 
)
static

Here is the caller graph for this function:

static BOOL tsmf_oss_play ( ITSMFAudioDevice *  audio,
const BYTE data,
UINT32  data_size 
)
static

Here is the caller graph for this function:

static BOOL tsmf_oss_set_format ( ITSMFAudioDevice *  audio,
UINT32  sample_rate,
UINT32  channels,
UINT32  bits_per_sample 
)
static

Here is the caller graph for this function: