Blame include/freerdp/client/rdpsnd.h

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