Client Class Reference

The Client class is used to include an Object's process callback function into the audio processing chain of the AudioDevice's Audio Thread. More...

Inheritance diagram for Client:

List of all members.

Public Member Functions

 Client (const QString &name)
void set_process_callback (ProcessCallback call)
void set_transport_control_callback (TransportControlCallback call)
bool is_smaller_then (APILinkedListNode *)

Public Attributes

ProcessCallback process
TransportControlCallback transport_control
QString m_name


Detailed Description

The Client class is used to include an Object's process callback function into the audio processing chain of the AudioDevice's Audio Thread.

Use the set_process_callback( ProcessCallback call) to set the Objects callback function. It's now save to add the Client to the AudioDevice, which will be done in a Thread save way, without using any mutual exclusion mechanisms.

See also:
AudioDevice::add_client(Client* client)
Parameters:
name The name of the Client, this should be a unique name

Member Function Documentation

void Client::set_process_callback ( ProcessCallback  call  ) 

Set this Client's process callback delegate to call.

The ProcessCallback is of type FastDelegate.

Use the convenience function MakeDelegate(this, &MyApp::process); to create a ProcessCallback delegate. See the AudioDevice for a code example

Parameters:
call The FastDelegate call to use as the callback function


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

Generated on Sun Mar 8 12:44:05 2009 for traverso by  doxygen 1.5.5