Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Audio Class Reference

Audio Library. More...

#include <audio.hpp>

Inheritance diagram for Audio:

Inheritance graph
[legend]
Collaboration diagram for Audio:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Audio ()
 Constructor.
 ~Audio ()
 Destructor.
int addSample (char *)
 Add an audio sample to the list of playable samples.
void playSample (int)
 Play a Sample.

Detailed Description

Audio Library.

This library will be able to do the audio stuff for the tests

Definition at line 30 of file audio.hpp.


Constructor & Destructor Documentation

Audio::Audio  ) 
 

Constructor.

Definition at line 25 of file audio.cpp.

References ERROR, PtfCore::getMessageLog(), Singleton< PtfCore >::getSingleton(), and MESSAGE.

Here is the call graph for this function:

Audio::~Audio  ) 
 

Destructor.

Definition at line 44 of file audio.cpp.


Member Function Documentation

int Audio::addSample char *  fname  ) 
 

Add an audio sample to the list of playable samples.

The audio sample is a wave file.

Parameters:
fname file name of wave file
Returns:
index of added sample
Definition at line 57 of file audio.cpp.

References PtfCore::getMessageLog(), and Singleton< PtfCore >::getSingleton().

Here is the call graph for this function:

void Audio::playSample int  index  ) 
 

Play a Sample.

The sample has to be loaded with the addSample() method.

Parameters:
index index of sample to play
Definition at line 76 of file audio.cpp.

References PtfCore::getMessageLog(), and Singleton< PtfCore >::getSingleton().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Fri Dec 17 14:54:27 2004 for Psychological Test Framework by doxygen 1.3.8