#include <streamupdater.h>
Inheritance diagram for openalpp::StreamUpdater:

Public Member Functions | |
| StreamUpdater (ALuint buffer1, ALuint buffer2, ALenum format, unsigned int frequency) | |
| void | addSource (ALuint sourcename) |
| void | removeSource (ALuint sourcename) |
| bool | update (void *buffer, unsigned int length) |
| void | cancelCleanup () |
Protected Member Functions | |
| virtual | ~StreamUpdater () |
Protected Attributes | |
| ALuint | buffers_ [2] |
| ALenum | format_ |
| unsigned int | frequency_ |
| std::vector< ALuint > | sources_ |
| std::vector< ALuint > | newsources_ |
| std::vector< ALuint > | removesources_ |
| bool | stoprunning_ |
| OpenThreads::Mutex | runmutex_ |
|
||||||||||||||||||||
|
Constructor.
|
|
|
Destructor. |
|
|
Add a source to the stream.
|
|
|
Inherited from Thread. Is called after run() finishes, and deletes this. |
|
|
Remove a source from the stream.
|
|
||||||||||||
|
Update the stream. I.e. add new data to play.
|
|
|
Names of the buffers to update. |
|
|
OpenAL format of the sound data. |
|
|
Frequency of the sound data. |
|
|
Source to update. |
|
|
Source to update. |
|
|
Mutex for stoprunning_. |
|
|
Source to update. |
|
|
Flag for when Run should stop running.. |
1.3.9.1