Interface representing a Audio Task which will be reproduced in a specific port.

#include <iAudioTask.h>

Public Member Functions

boost::system::error_code subscribe (AudioTaskObserver *observer)
 
boost::system::error_code unsubscribe (AudioTaskObserver *observer)
 
 IAudioTask (dpyAudio::TaskType type, dpyAudio::Port port, std::string audioFilePath, std::list< dpyAudio::AudioConfig > configurations)
 
virtual ~IAudioTask ()
 Destructor.
 
void setStatus (dpyAudio::AudioTaskStatus status)
 
dpyAudio::AudioTaskStatus getStatus () const
 Get Task status. More...
 
dpyAudio::AudioTaskInformation getAudioTaskInformation () const
 
int getId () const
 
dpyAudio::TaskType getType () const
 
std::list< dpyAudio::AudioConfiggetConfiguration () const
 Get Task configuration. More...
 
int getVolume () const
 Get Task volume. More...
 

Static Public Member Functions

static void setTaskCounter (int taskCounter)
 
static int getTaskCounter ()
 

Member Function Documentation

dpyAudio::AudioTaskInformation getAudioTaskInformation ( ) const

Gets audio Task information

Returns
audio Task information
std::list<dpyAudio::AudioConfig> getConfiguration ( ) const
Returns
task configuration
int getId ( ) const

Gets audio Task id

Returns
audio Task id
dpyAudio::AudioTaskStatus getStatus ( ) const
Returns
task status
dpyAudio::TaskType getType ( ) const

Gets audio Task id

Returns
audio Task id
int getVolume ( ) const
Returns
int from 0 - 100 with task volume