FreeRDP
tsmf_oss.c File Reference
#include <freerdp/config.h>
#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)
 

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)
 
 if (!oss) return NULL
 

Variables

oss iface Open = tsmf_oss_open
 
oss iface SetFormat = tsmf_oss_set_format
 
oss iface Play = tsmf_oss_play
 
oss iface GetLatency = tsmf_oss_get_latency
 
oss iface Flush = tsmf_oss_flush
 
oss iface Free = tsmf_oss_free
 
oss pcm_handle = -1
 
return &oss iface
 

Macro Definition Documentation

◆ OSS_LOG_ERR

#define OSS_LOG_ERR (   _text,
  _error 
)
Value:
do \
{ \
if ((_error) != 0) \
{ \
char ebuffer[256] = { 0 }; \
WLog_ERR(TAG, "%s: %i - %s", (_text), (_error), \
winpr_strerror((_error), ebuffer, sizeof(ebuffer))); \
} \
} 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

◆ if()

if ( oss)

◆ tsmf_oss_flush()

static BOOL tsmf_oss_flush ( ITSMFAudioDevice *  audio)
static

◆ tsmf_oss_free()

static void tsmf_oss_free ( ITSMFAudioDevice *  audio)
static
Here is the call graph for this function:

◆ tsmf_oss_get_latency()

static UINT64 tsmf_oss_get_latency ( ITSMFAudioDevice *  audio)
static

◆ tsmf_oss_open()

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

◆ tsmf_oss_play()

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

◆ tsmf_oss_set_format()

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

Variable Documentation

◆ Flush

oss iface Flush = tsmf_oss_flush

◆ Free

oss iface Free = tsmf_oss_free

◆ GetLatency

oss iface GetLatency = tsmf_oss_get_latency

◆ iface

return& oss iface

◆ Open

oss iface Open = tsmf_oss_open

◆ pcm_handle

oss pcm_handle = -1

◆ Play

oss iface Play = tsmf_oss_play

◆ SetFormat

oss iface SetFormat = tsmf_oss_set_format