Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
AudioVideoTransferManager Class Reference

Class for processing incoming and outgoing audio and images. Handles media data received from the server. Reproduces speex encoded audio and Wave file segments using the primary audio output device in the system. More...

Public Member Functions

 AudioVideoTransferManager (Connection c)
 Initializes a new AudioVideoTransferManager that uses the provided connection to receive and transmit audio and pictures. More...
 
void EnableOutgoingAudio ()
 Enables audio recording and publishing to the server from the primary audio capture in the system. More...
 
void DisableOutgoingAudio ()
 Stops recording audio and publishing it to the server. More...
 
void EnableIncomingAudio ()
 Starts receiving audio from the server and reproducing it using the primary audio output device in the system. More...
 
void DisableIncomingAudio ()
 Stops receiving and reproducing audio. More...
 

Public Attributes

JpgImageReceived JpgImageReceivedEvent
 

Properties

bool UseOutgoingUdp [get, set]
 Gets and sets UseOutGoingUdp. More...
 

Detailed Description

Class for processing incoming and outgoing audio and images. Handles media data received from the server. Reproduces speex encoded audio and Wave file segments using the primary audio output device in the system.

<author>Veli-Mikko Puupponen</author> Captures audio from the dafault audio input device in the system using a NAudio WaveIn instance. If outgoing audio is enabled, uploads the captured audio in a speex encoded format to the server.

Publishes a JpgImageReceivedEvent upon receiving an image from the server.

Constructor & Destructor Documentation

Initializes a new AudioVideoTransferManager that uses the provided connection to receive and transmit audio and pictures.

Parameters
cValid Connection instance.

Member Function Documentation

void DisableIncomingAudio ( )

Stops receiving and reproducing audio.

void DisableOutgoingAudio ( )

Stops recording audio and publishing it to the server.

void EnableIncomingAudio ( )

Starts receiving audio from the server and reproducing it using the primary audio output device in the system.

void EnableOutgoingAudio ( )

Enables audio recording and publishing to the server from the primary audio capture in the system.

Property Documentation

bool UseOutgoingUdp
getset

Gets and sets UseOutGoingUdp.


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