openalpp::DeviceUpdater Class Reference

Inheritance diagram for openalpp::DeviceUpdater:

openalpp::StreamUpdater

List of all members.

Public Member Functions

OPENALPP_API DeviceUpdater (int device, unsigned int frequency, unsigned int buffersize, SampleFormat format, ALuint buffer1, ALuint buffer2)
OPENALPP_API ~DeviceUpdater ()
OPENALPP_API void run ()
OPENALPP_API void enter ()
OPENALPP_API void leave ()
OPENALPP_API void CopyInput (void *tempbuffer, int length)
virtual void stop ()


Detailed Description

Updater for sound input devices (like microphones).

Constructor & Destructor Documentation

OPENALPP_API openalpp::DeviceUpdater::DeviceUpdater ( int  device,
unsigned int  frequency,
unsigned int  buffersize,
SampleFormat  format,
ALuint  buffer1,
ALuint  buffer2 
)

Constructor.

Parameters:
device is the number of the device (as PortAudio reports it). TODO: Change this to something non-portaudio dependant.
frequency is the desired recording frequency.
buffersize is the desired buffersize.
format is the format of the sound.
buffer1 and..
buffer2 are the (OpenAL) buffers to use.

OPENALPP_API openalpp::DeviceUpdater::~DeviceUpdater (  ) 

Destructor.


Member Function Documentation

OPENALPP_API void openalpp::DeviceUpdater::run (  ) 

Inherited from Thread. This will be called when the updater is Start():ed..

OPENALPP_API void openalpp::DeviceUpdater::enter (  )  [inline]

Enter critical section.

OPENALPP_API void openalpp::DeviceUpdater::leave (  )  [inline]

Leave critical section.

OPENALPP_API void openalpp::DeviceUpdater::CopyInput ( void *  tempbuffer,
int  length 
)

Copy input from callback to temporary buffer. Update will copy the data from the temporary buffer to a sound buffer.

Parameters:
tempbuffer is a pointer to the buffer
length is the length - in bytes - of the buffer

virtual void openalpp::DeviceUpdater::stop (  )  [virtual]

Terminates the capturing thread.

Reimplemented from openalpp::StreamUpdater.


The documentation for this class was generated from the following file:
Generated on Mon Oct 8 10:42:12 2007 for osgAL by  doxygen 1.5.3