FreeRDP
|
#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) |
WINPR_ASSERT (sptr) | |
if (!oss) return ERROR_OUTOFMEMORY | |
Variables | |
* | sptr = NULL |
TSMFOssAudioDevice * | oss = calloc(1, sizeof(TSMFOssAudioDevice)) |
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 | CHANNEL_RC_OK |
#define OSS_LOG_ERR | ( | _text, | |
_error | |||
) |
if | ( | ! | oss | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
WINPR_ASSERT | ( | sptr | ) |
return CHANNEL_RC_OK |
oss iface Flush = tsmf_oss_flush |
oss iface Free = tsmf_oss_free |
oss iface GetLatency = tsmf_oss_get_latency |
oss iface Open = tsmf_oss_open |
TSMFOssAudioDevice* oss = calloc(1, sizeof(TSMFOssAudioDevice)) |
oss pcm_handle = -1 |
oss iface Play = tsmf_oss_play |
oss iface SetFormat = tsmf_oss_set_format |
* sptr = NULL |