#include <SoundDataSender.h>
Inheritance diagram for SoundDataSender:
Public Member Functions | |
SoundDataSender (PlatformProcess *process, bool blocking) | |
The constructor. | |
~SoundDataSender () | |
Destructor. | |
Protected Member Functions | |
virtual void | preparePackage () |
The function prepares a package. | |
virtual void | setPackage (const ObserverID &receiver) |
The functions sets a package for a receiver. | |
virtual void | freePackage () |
The function frees the package. | |
Private Member Functions | |
void | prepare (int i) |
The function fills a package with data. | |
Private Attributes | |
MemoryRegionID | memID [2] |
The memory regions of the two package instances. | |
OSoundVectorData * | soundVec [2] |
Pointers to the data in the packages. | |
RCRegion * | package [2] |
The two instances of the packages. | |
int | index |
The index of the next package. |
Definition at line 19 of file SoundDataSender.h.
|
The constructor.
Definition at line 8 of file SoundDataSender.cpp. References SystemCall::getRobotDesign(), soundVec, and VERIFY. |
Here is the call graph for this function:
|
Destructor.
Definition at line 31 of file SoundDataSender.cpp. References VERIFY. |
|
The function fills a package with data.
Definition at line 37 of file SoundDataSender.cpp. References SoundData::pcmBuffer, and soundVec. Referenced by preparePackage(). |
|
The function prepares a package.
Reimplemented from SenderBase< SoundData >. Definition at line 47 of file SoundDataSender.cpp. |
Here is the call graph for this function:
|
The functions sets a package for a receiver.
Reimplemented from SenderBase< SoundData >. Definition at line 65 of file SoundDataSender.cpp. References VERIFY. |
|
The function frees the package.
Reimplemented from SenderBase< SoundData >. Definition at line 77 of file SoundDataSender.cpp. |
|
The memory regions of the two package instances.
Definition at line 22 of file SoundDataSender.h. |
|
Pointers to the data in the packages.
Definition at line 23 of file SoundDataSender.h. Referenced by prepare(), preparePackage(), and SoundDataSender(). |
|
The two instances of the packages.
Definition at line 24 of file SoundDataSender.h. |
|
The index of the next package.
Definition at line 25 of file SoundDataSender.h. |