Async  0.18.0
Public Member Functions | Friends
Async::AudioSelector Class Reference

This class is used to select one of many audio streams. More...

#include <AsyncAudioSelector.h>

Inheritance diagram for Async::AudioSelector:
Async::AudioSource

List of all members.

Public Member Functions

Friends


Detailed Description

This class is used to select one of many audio streams.

Author:
Tobias Blomberg / SM0SVX
Date:
2006-08-01

This class is used to select one of many incoming audio streams. Incoming samples on non-selected branches will be thrown away.

Definition at line 114 of file AsyncAudioSelector.h.


Constructor & Destructor Documentation

Default constuctor.

Destructor.


Member Function Documentation

Add an audio source to the selector.

Parameters:
sourceThe audio source to add

Find out if auto select is enabled or not for the given source.

Parameters:
sourceThe audio source
Returns:
Returns true if auto select is enabled for the given source or else false is returned

Disable autoselection on the given source.

Parameters:
sourceThe audio source
void Async::AudioSelector::enableAutoSelect ( AudioSource source,
int  prio 
)

Enable autoselection on the given source.

Parameters:
sourceThe audio source
prioThe priority to set. Higher numbers give higher priority.

Remove a previously added audio source from the selector.

Parameters:
sourceThe audio source to remove

Select one of the previously added audio sources.

Parameters:
sourceThe audio source to select. 0 = none selected.
void Async::AudioSelector::setSelectionPrio ( AudioSource source,
int  prio 
)

Set the prio to be used for selection.

Parameters:
sourceThe audio source
prioThe priority to set. Higher numbers give higher priority.

Friends And Related Function Documentation

friend class Branch [friend]

Definition at line 188 of file AsyncAudioSelector.h.


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