Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
MicrophoneServer Class ReferenceStreams audio from the microphone over the network. More...
Inheritance diagram for MicrophoneServer:
Detailed DescriptionStreams audio from the microphone over the network. Definition at line 9 of file MicrophoneServer.h.
Constructor & Destructor Documentation
destructor
constructor
don't call Member Function Documentation
Delegate function for event processing, the event itself is pointed to (only for the duration of the doEvent() call!) by event. Default implementation watches for 'private' text message events (those forwarded by a BehaviorSwitchControl from ControllerGUI input) and will publically rebroadcast them. The idea is that your own processEvent gets first dibs, but if the behavior doesn't handle the text message, it will be handed off for others. Reimplemented from BehaviorBase.
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.
template<class T >
writes length bytes from src to dst Definition at line 65 of file MicrophoneServer.h.
template<class T >
writes value to dst and advances dst Definition at line 58 of file MicrophoneServer.h.
enforces singleton status
returns size of a "frame" at the given sampling rate and resolution
don't call
performs sampling to a specified rate and resolution, stores into newSamples (which you must allocate)
makes Aperios-specific call to set microphone mode
makes Aperios-specific call to set microphone mode Member Data Documentation
global instance of the server Definition at line 31 of file MicrophoneServer.h.
aperios specific identifier for microphone access Definition at line 51 of file MicrophoneServer.h.
max transmission buffer size for socket Definition at line 26 of file MicrophoneServer.h.
socket for communication Definition at line 54 of file MicrophoneServer.h. The documentation for this class was generated from the following file: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:13 2016 by Doxygen 1.6.3 |