Blame include/freerdp/client/audin.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Audio Input Redirection Virtual Channel
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2010-2011 Vic Lee
Packit 1fb8d4
 * Copyright 2015 Thincast Technologies GmbH
Packit 1fb8d4
 * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.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_AUDIN_CLIENT_AUDIN_H
Packit 1fb8d4
#define FREERDP_CHANNEL_AUDIN_CLIENT_AUDIN_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/channels/audin.h>
Packit 1fb8d4
#include <freerdp/freerdp.h>
Packit 1fb8d4
#include <freerdp/codec/audio.h>
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * Subsystem Interface
Packit 1fb8d4
 */
Packit 1fb8d4
Packit Service 5a9772
typedef UINT (*AudinReceive)(const AUDIO_FORMAT* format, const BYTE* data, size_t size,
Packit Service 5a9772
                             void* userData);
Packit 1fb8d4
Packit 1fb8d4
typedef struct _IAudinDevice IAudinDevice;
Packit 1fb8d4
struct _IAudinDevice
Packit 1fb8d4
{
Packit 1fb8d4
	UINT (*Open)(IAudinDevice* devplugin, AudinReceive receive, void* userData);
Packit 1fb8d4
	BOOL (*FormatSupported)(IAudinDevice* devplugin, const AUDIO_FORMAT* format);
Packit 1fb8d4
	UINT (*SetFormat)(IAudinDevice* devplugin, const AUDIO_FORMAT* format, UINT32 FramesPerPacket);
Packit 1fb8d4
	UINT (*Close)(IAudinDevice* devplugin);
Packit 1fb8d4
	UINT (*Free)(IAudinDevice* devplugin);
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
#define AUDIN_DEVICE_EXPORT_FUNC_NAME "freerdp_audin_client_subsystem_entry"
Packit 1fb8d4
Packit 1fb8d4
typedef UINT (*PREGISTERAUDINDEVICE)(IWTSPlugin* plugin, IAudinDevice* device);
Packit 1fb8d4
Packit 1fb8d4
struct _FREERDP_AUDIN_DEVICE_ENTRY_POINTS
Packit 1fb8d4
{
Packit 1fb8d4
	IWTSPlugin* plugin;
Packit 1fb8d4
	PREGISTERAUDINDEVICE pRegisterAudinDevice;
Packit 1fb8d4
	ADDIN_ARGV* args;
Packit 1fb8d4
	rdpContext* rdpcontext;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _FREERDP_AUDIN_DEVICE_ENTRY_POINTS FREERDP_AUDIN_DEVICE_ENTRY_POINTS;
Packit 1fb8d4
typedef FREERDP_AUDIN_DEVICE_ENTRY_POINTS* PFREERDP_AUDIN_DEVICE_ENTRY_POINTS;
Packit 1fb8d4
Packit 1fb8d4
typedef UINT (*PFREERDP_AUDIN_DEVICE_ENTRY)(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS pEntryPoints);
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_AUDIN_CLIENT_AUDIN_H */