class CAVERN_audioStream_c Audio streaming class
|
| OK Status OK |
|
| FAILED Status FAILED |
|
| VERBOSE Verbose mode |
|
| QUIET No printout mode |
|
| DEFAULT_PORT Default port of server (11000). |
|
| MAX_AUDIO_PORTS Default max number of audio output ports (4). |
| | init (char* remHost, int remPort=CAVERN_audioStream_c::DEFAULT_PORT, int numAudioPorts = CAVERN_audioStream_c::MAX_AUDIO_PORTS) Initialize the audio streaming tool |
|
| process () Begin audio streaming. |
| | setVerbose (int verb) Set verbose mode |
| | setThreshold (float thresh) Set threshold to trigger audio streaming |
|
| ~CAVERN_audioStream_c () Deleting the object stops the streaming. |
Audio streaming class. This class allows you to perform multi-way audio streaming. This tool assumes that you have set up a UDP reflector to deliver the audio stream to all participating clients. Use CAVERNnet_udpReflector_c to build one. Make sure that it is listening on port 11000 or whatever port you choose.Also the assumption is that audio sampling is performed at 8K Hz. This class will automatically set the audio panel to those values. If you prefer to use a different rate use the apanel to adjust it. But you should adjust both audio in and out to the same frequency.
This class is also instrumented to show network utilization. To turn instrumentation on enter the following before running your program:
setenv CAVERN_AUDIO_PERFMON 5
The 5 here indicates that a report is generated every 5 seconds.
To turn off instrumentation use:
setenv CAVERN_AUDIO_PERFMON 0
NOTE: If you turn on instrumentation for 1 client you have to turn it on for all clients. This is because turning on instrumentation modifies the data stream. So the data stream for client with monitoring turned ON is not compatible with the stream for clients with monitoring turned OFF.
Also set the form of performance monitoring you wish to perform:
To log to a file set the environment variable CAVERN_AUDIO_PERFMON_LOG to the name of the file to save performance monitoring data to.
To log to a remote performance monitoring daemon, specify the hostname of the daemon in CAVERN_AUDIO_PERFMON_DAEMON.
The definitions of the performance monitoring logs are described in the general description of CAVERNsoft performance monitoring.
void setVerbose(int verb)
void setThreshold(float thresh)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de