Main Page | Class Hierarchy | Class List | File List | Class Members

TestAudio Class Reference

#include <audio.h>

Inheritance diagram for TestAudio:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TestAudio (PUDPSocket &_socket, PString _devName)
virtual ~TestAudio ()
virtual void Terminate ()
void LowerVolume ()
void RaiseVolume ()
PINDEX GetCountPackets ()

Protected Member Functions

BOOL OpenAudio (enum PSoundChannel::Directions dir)

Protected Attributes

PUDPSocket & socket
PString devName
PString name
PINDEX currentVolume
PSoundChannel sound
BOOL keepGoing
PINDEX countPackets

Detailed Description

The base class for reading and writing audio from/to the sound device. This class will take audio to/from the PUDPSocket, and transfer it to/from the sound device


Constructor & Destructor Documentation

TestAudio::TestAudio PUDPSocket &  _socket,
PString  _devName
 

Constructor, given the socket and device name that comms happen over

TestAudio::~TestAudio  )  [virtual]
 

Destructor


Member Function Documentation

PINDEX TestAudio::GetCountPackets  )  [inline]
 

Reporting function

void TestAudio::LowerVolume  ) 
 

Untility function to lower the volume

BOOL TestAudio::OpenAudio enum PSoundChannel::Directions  dir  )  [protected]
 

Call that causes the audio device to open

void TestAudio::RaiseVolume  ) 
 

Untility function to raise the volume

void TestAudio::Terminate  )  [virtual]
 

Override of pwlib method, which causes this thread to end


Member Data Documentation

PINDEX TestAudio::countPackets [protected]
 

A count of the number of packets that have passed by

PINDEX TestAudio::currentVolume [protected]
 

The current volume, which is 0..100(max)

PString TestAudio::devName [protected]
 

Name of the audio device we are using

BOOL TestAudio::keepGoing [protected]
 

Flag to indicate we have to keep going, and is used when terminating this thread

PString TestAudio::name [protected]
 

Name of our direction - read or write

PUDPSocket& TestAudio::socket [protected]
 

the socket that we do comms over

PSoundChannel TestAudio::sound [protected]
 

Holds the sound class that is provided by pwlib to access the sound card


The documentation for this class was generated from the following files:
Generated on Sun Jan 29 19:49:49 2006 for SSSound : Sofa Switch Sound by  doxygen 1.4.4