Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SpeakerServer Class ReferencePlays streamed audio via the speaker. More...
Inheritance diagram for SpeakerServer:
Detailed DescriptionPlays streamed audio via the speaker. Definition at line 9 of file SpeakerServer.h.
Constructor & Destructor Documentation
destructor
constructor
don't call Member Function Documentation
Delegate function for subclasses to be notified when the behavior starts up. Should be overridden by subclasses to subscribe to events, install motion commands, etc. doStart() is basically a hook to allow subclasses to jump in and do some customization of behavior parameters while the behavior is starting. If you are writing a behavior class and do not expect further derivation, just override doStart() yourself. However, if you do expect further derivation of your class, consider using preStart() or postStart() instead, and leave doStart() for the 'leaf' classes. Reimplemented from BehaviorBase.
Delegate function for subclasses to be notified when the behavior starts up. May be overridden to cleanup when the behavior is shutting down. However events will automatically be unsubscribed, and by using addMotion(), motions will automatically be removed by stop(), so you may not need any cleanup. Reimplemented from BehaviorBase.
returns global instance
returns the next sizeof(short) bytes from buf as a short Definition at line 29 of file SpeakerServer.h.
should be called with new sound data from the network
don't call
registered by doStart() to be called by networking module with incoming data Member Data Documentation
Definition at line 74 of file SpeakerServer.h.
Definition at line 57 of file SpeakerServer.h.
global instance of the server (only ever want to have one of these) Definition at line 24 of file SpeakerServer.h.
maximum size of sound buffer to send to system Definition at line 31 of file SpeakerServer.h.
Definition at line 56 of file SpeakerServer.h.
maximum network packet size to accept Definition at line 32 of file SpeakerServer.h.
Definition at line 58 of file SpeakerServer.h.
network communications socket for receiving sound data Definition at line 27 of file SpeakerServer.h. The documentation for this class was generated from the following file: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:17 2016 by Doxygen 1.6.3 |