FreeRDP
rdpsnd_mac.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winpr/crt.h>
#include <freerdp/types.h>
#include <AudioToolbox/AudioToolbox.h>
#include <AudioToolbox/AudioQueue.h>
#include "rdpsnd_main.h"

Macros

#define __COREFOUNDATION_CFPLUGINCOM__   1
 
#define IUNKNOWN_C_GUTS   void *_reserved; void* QueryInterface; void* AddRef; void* Release
 
#define MAC_AUDIO_QUEUE_NUM_BUFFERS   10
 
#define MAC_AUDIO_QUEUE_BUFFER_SIZE   32768
 
#define freerdp_rdpsnd_client_subsystem_entry   FREERDP_API freerdp_rdpsnd_client_subsystem_entry
 

Functions

static void mac_audio_queue_output_cb (void *inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer)
 
static BOOL rdpsnd_mac_set_format (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format, UINT32 latency)
 
static char * FormatError (OSStatus st)
 
static BOOL rdpsnd_mac_open (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format, UINT32 latency)
 
static void rdpsnd_mac_close (rdpsndDevicePlugin *device)
 
static void rdpsnd_mac_free (rdpsndDevicePlugin *device)
 
static BOOL rdpsnd_mac_format_supported (rdpsndDevicePlugin *device, const AUDIO_FORMAT *format)
 
static BOOL rdpsnd_mac_set_volume (rdpsndDevicePlugin *device, UINT32 value)
 
static void rdpsnd_mac_start (rdpsndDevicePlugin *device)
 
static UINT rdpsnd_mac_play (rdpsndDevicePlugin *device, const BYTE *data, size_t size)
 
UINT freerdp_rdpsnd_client_subsystem_entry (PFREERDP_RDPSND_DEVICE_ENTRY_POINTS pEntryPoints)
 

Macro Definition Documentation

#define __COREFOUNDATION_CFPLUGINCOM__   1

FreeRDP: A Remote Desktop Protocol Implementation Audio Output Virtual Channel

Copyright 2012 Laxmikant Rashinkar LK.Ra.nosp@m.shin.nosp@m.kar@g.nosp@m.mail.nosp@m..com Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com Copyright 2016 Inuvika Inc. Copyright 2016 David PHAM-VAN d.pha.nosp@m.mvan.nosp@m.@inuv.nosp@m.ika..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

#define freerdp_rdpsnd_client_subsystem_entry   FREERDP_API freerdp_rdpsnd_client_subsystem_entry
#define IUNKNOWN_C_GUTS   void *_reserved; void* QueryInterface; void* AddRef; void* Release
#define MAC_AUDIO_QUEUE_BUFFER_SIZE   32768
#define MAC_AUDIO_QUEUE_NUM_BUFFERS   10

Function Documentation

static char* FormatError ( OSStatus  st)
static

Here is the caller graph for this function:

UINT 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:

static void mac_audio_queue_output_cb ( void inUserData,
AudioQueueRef  inAQ,
AudioQueueBufferRef  inBuffer 
)
static

Here is the caller graph for this function:

static void rdpsnd_mac_close ( rdpsndDevicePlugin *  device)
static

Here is the caller graph for this function:

static BOOL rdpsnd_mac_format_supported ( rdpsndDevicePlugin *  device,
const AUDIO_FORMAT format 
)
static

Here is the caller graph for this function:

static void rdpsnd_mac_free ( rdpsndDevicePlugin *  device)
static

Here is the caller graph for this function:

static BOOL rdpsnd_mac_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:

static UINT rdpsnd_mac_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:

static BOOL rdpsnd_mac_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:

static BOOL rdpsnd_mac_set_volume ( rdpsndDevicePlugin *  device,
UINT32  value 
)
static

Here is the caller graph for this function:

static void rdpsnd_mac_start ( rdpsndDevicePlugin *  device)
static

Here is the caller graph for this function: