FreeRDP
audin_server_context Struct Reference

#include <audin.h>

Collaboration diagram for audin_server_context:

Data Fields

HANDLE vcm
 
void * data
 
AUDIO_FORMATserver_formats
 
size_t num_server_formats
 
AUDIO_FORMATdst_format
 
int frames_per_packet
 
AUDIO_FORMATclient_formats
 
size_t num_client_formats
 
SSIZE_T selected_client_format
 
psAudinServerSelectFormat SelectFormat
 
psAudinServerOpen Open
 
psAudinServerIsOpen IsOpen
 
psAudinServerClose Close
 
psAudinServerOpening Opening
 
psAudinServerOpenResult OpenResult
 
psAudinServerReceiveSamples ReceiveSamples
 
rdpContext * rdpcontext
 

Detailed Description

FreeRDP: A Remote Desktop Protocol Implementation Server Audio Input Virtual Channel

Copyright 2012 Vic Lee 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

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.

Field Documentation

◆ client_formats

AUDIO_FORMAT* audin_server_context::client_formats

◆ Close

psAudinServerClose audin_server_context::Close

Close the audio stream.

◆ data

void* audin_server_context::data

◆ dst_format

AUDIO_FORMAT* audin_server_context::dst_format

◆ frames_per_packet

int audin_server_context::frames_per_packet

◆ IsOpen

psAudinServerIsOpen audin_server_context::IsOpen

◆ num_client_formats

size_t audin_server_context::num_client_formats

◆ num_server_formats

size_t audin_server_context::num_server_formats

◆ Open

psAudinServerOpen audin_server_context::Open

Open the audio input stream.

◆ Opening

psAudinServerOpening audin_server_context::Opening

It's ready to open the audio input stream. The server should examine client formats and call SelectFormat to choose the desired one in this callback.

◆ OpenResult

psAudinServerOpenResult audin_server_context::OpenResult

Client replied HRESULT of the open operation.

◆ rdpcontext

rdpContext* audin_server_context::rdpcontext

◆ ReceiveSamples

psAudinServerReceiveSamples audin_server_context::ReceiveSamples

Receive audio samples. Actual bytes in the buffer is: nframes * dst_format.nBitsPerSample * dst_format.nChannels / 8 Note that this callback is called from a different thread context so the server must be careful of thread synchronization.

◆ selected_client_format

SSIZE_T audin_server_context::selected_client_format

◆ SelectFormat

psAudinServerSelectFormat audin_server_context::SelectFormat

Choose the audio format to be received. The index argument is an index into the client_formats array and must be smaller than num_client_formats.

◆ server_formats

AUDIO_FORMAT* audin_server_context::server_formats

◆ vcm

HANDLE audin_server_context::vcm

The documentation for this struct was generated from the following file: