
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 () |
| OPENALPP_API openalpp::DeviceUpdater::DeviceUpdater | ( | int | device, | |
| unsigned int | frequency, | |||
| unsigned int | buffersize, | |||
| SampleFormat | format, | |||
| ALuint | buffer1, | |||
| ALuint | buffer2 | |||
| ) |
Constructor.
| 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.
| 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.
| tempbuffer | is a pointer to the buffer | |
| length | is the length - in bytes - of the buffer |
| 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::run | ( | ) |
Inherited from Thread. This will be called when the updater is Start():ed..
| virtual void openalpp::DeviceUpdater::stop | ( | ) | [virtual] |
Terminates the capturing thread.
Reimplemented from openalpp::StreamUpdater.
1.5.9