iAudioTask.h
40 AudioTaskInformation(): port("user", "", dpyAudio::NA_TYPE ), audioFilePath(""),status(dpyAudio::AudioTaskStatus::UNKNOWN_STATUS), type(dpyAudio::TaskType::PLAY) {
51 AudioTaskInformation(dpyAudio::Port p, std::string a, dpyAudio::AudioTaskStatus s, dpyAudio::TaskType t, std::list<dpyAudio::AudioConfig> c): port(p), audioFilePath(a), status(s), type(t), configurations(c) {
72 virtual void AudioTaskStatusChange(const int taskId,const dpyAudio::TaskType type, const dpyAudio::AudioTaskStatus& status) = 0;
107 IAudioTask(dpyAudio::TaskType type, dpyAudio::Port port,std::string audioFilePath, std::list<dpyAudio::AudioConfig> configurations);
virtual ~AudioTaskObserver()
Destructor.
Definition: iAudioTask.h:76
dpyAudio::AudioTaskStatus getStatus() const
Get Task status.
Definition: iAudioTask.h:118
AudioTaskInformation(dpyAudio::Port p, std::string a, dpyAudio::AudioTaskStatus s, dpyAudio::TaskType t, std::list< dpyAudio::AudioConfig > c)
AudioTaskInformation constructor.
Definition: iAudioTask.h:51
dpyAudio::Port port
Port information.
Definition: iAudioTask.h:33
std::string audioFilePath
Audio file corresponding to the Task.
Definition: iAudioTask.h:34
Deepsy Audio namespace that includes the different enums, structs or method signatures that should be...
TaskType
Enumeration defining the different type of audio tasks.
Definition: audioTypes.h:69
dpyAudio::TaskType type
Type of audio task.
Definition: iAudioTask.h:36
dpyAudio::AudioTaskInformation getAudioTaskInformation() const
Definition: iAudioTask.h:126
Interface representing a Audio Task which will be reproduced in a specific port.
Definition: iAudioTask.h:85
dpyAudio::AudioTaskStatus status
Status corresponding to the Task.
Definition: iAudioTask.h:35
AudioTaskStatus
Enumeration that includes the possible status of an Audio Task within the Audio system.
Definition: iAudioTask.h:17
std::list< dpyAudio::AudioConfig > configurations
Configurations of the audio task.
Definition: iAudioTask.h:38
std::list< dpyAudio::AudioConfig > getConfiguration() const
Get Task configuration.
Definition: iAudioTask.h:152