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 |
( |
|
) |
|
Member Function Documentation
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 |
OPENALPP_API void openalpp::DeviceUpdater::enter |
( |
|
) |
[inline] |
OPENALPP_API void openalpp::DeviceUpdater::leave |
( |
|
) |
[inline] |
OPENALPP_API void openalpp::DeviceUpdater::run |
( |
|
) |
|
Inherited from Thread. This will be called when the updater is Start():ed..
virtual void openalpp::DeviceUpdater::stop |
( |
|
) |
[virtual] |
The documentation for this class was generated from the following file: