Blame include/freerdp/client/rdpsnd.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Audio Output Virtual Channel
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2010-2011 Vic Lee
Packit 1fb8d4
 * Copyright 2012-2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CHANNEL_RDPSND_CLIENT_RDPSND_H
Packit 1fb8d4
#define FREERDP_CHANNEL_RDPSND_CLIENT_RDPSND_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/channels/rdpsnd.h>
Packit 1fb8d4
Packit Service 5a9772
#define RDPSND_DVC_CHANNEL_NAME "AUDIO_PLAYBACK_DVC"
Packit Service 5a9772
Packit 1fb8d4
/**
Packit 1fb8d4
 * Subsystem Interface
Packit 1fb8d4
 */
Packit 1fb8d4
typedef struct rdpsnd_plugin rdpsndPlugin;
Packit 1fb8d4
Packit 1fb8d4
typedef struct rdpsnd_device_plugin rdpsndDevicePlugin;
Packit 1fb8d4
Packit 1fb8d4
typedef BOOL (*pcFormatSupported)(rdpsndDevicePlugin* device, const AUDIO_FORMAT* format);
Packit 1fb8d4
typedef BOOL (*pcOpen)(rdpsndDevicePlugin* device, const AUDIO_FORMAT* format, UINT32 latency);
Packit 1fb8d4
typedef UINT32 (*pcGetVolume)(rdpsndDevicePlugin* device);
Packit 1fb8d4
typedef BOOL (*pcSetVolume)(rdpsndDevicePlugin* device, UINT32 value);
Packit 1fb8d4
typedef UINT (*pcPlay)(rdpsndDevicePlugin* device, const BYTE* data, size_t size);
Packit 1fb8d4
typedef void (*pcStart)(rdpsndDevicePlugin* device);
Packit 1fb8d4
typedef void (*pcClose)(rdpsndDevicePlugin* device);
Packit 1fb8d4
typedef void (*pcFree)(rdpsndDevicePlugin* device);
Packit Service 5a9772
typedef BOOL (*pcDefaultFormat)(rdpsndDevicePlugin* device, const AUDIO_FORMAT* desired,
Packit Service 5a9772
                                AUDIO_FORMAT* defaultFormat);
Packit 1fb8d4
Packit 1fb8d4
struct rdpsnd_device_plugin
Packit 1fb8d4
{
Packit 1fb8d4
	rdpsndPlugin* rdpsnd;
Packit 1fb8d4
Packit 1fb8d4
	pcFormatSupported FormatSupported;
Packit 1fb8d4
	pcOpen Open;
Packit 1fb8d4
	pcGetVolume GetVolume;
Packit 1fb8d4
	pcSetVolume SetVolume;
Packit 1fb8d4
	pcPlay Play;
Packit Service 5a9772
	pcStart Start; /* Deprecated, unused. */
Packit 1fb8d4
	pcClose Close;
Packit 1fb8d4
	pcFree Free;
Packit Service 5a9772
	pcDefaultFormat DefaultFormat;
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
#define RDPSND_DEVICE_EXPORT_FUNC_NAME "freerdp_rdpsnd_client_subsystem_entry"
Packit 1fb8d4
Packit 1fb8d4
typedef void (*PREGISTERRDPSNDDEVICE)(rdpsndPlugin* rdpsnd, rdpsndDevicePlugin* device);
Packit 1fb8d4
Packit 1fb8d4
struct _FREERDP_RDPSND_DEVICE_ENTRY_POINTS
Packit 1fb8d4
{
Packit 1fb8d4
	rdpsndPlugin* rdpsnd;
Packit 1fb8d4
	PREGISTERRDPSNDDEVICE pRegisterRdpsndDevice;
Packit 1fb8d4
	ADDIN_ARGV* args;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _FREERDP_RDPSND_DEVICE_ENTRY_POINTS FREERDP_RDPSND_DEVICE_ENTRY_POINTS;
Packit 1fb8d4
typedef FREERDP_RDPSND_DEVICE_ENTRY_POINTS* PFREERDP_RDPSND_DEVICE_ENTRY_POINTS;
Packit 1fb8d4
Packit Service 5a9772
typedef UINT (*PFREERDP_RDPSND_DEVICE_ENTRY)(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS pEntryPoints);
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_RDPSND_CLIENT_RDPSND_H */