sCmd | (String) The parameter specifies the operation (command) to be executed on the sound server. For example "enable:0;what:all;"
"enable:nn;" (optional) - Operations allowing to enable/disable the requests for sound playback on the sound server. It may concern all requests or just a group of requests from a specific PROMOTIC subsystem. Note:
If playback of some sound requests is disabled, then these requests remain queued in the sound server (e.g. periodical repeated playbacks), but the request is bypassed each tim and the server continues with the next request that is queued. If the disabled request is enabled, then it starts the playback automatically. Thus, this means the disabled requests are not deleted from the internal queue of the sound server, but just ignored. This concerns those requests that were already queued in the server in the moment the disable command was sent, but also the commands that will be queued. This means it is more like a status of the server than a status of the individual requests. "enable:0;" - Disable the requests for sound playback on the sound server.
"enable:1;" - Enable the requests for sound playback on the sound server. "what:xx;" (optional) - It allows to limit the operation ("enable:nn;") only to requests for sound playback received from a specific PROMOTIC subsystem.
"what:all;" - The operation concerns all sound playback requests.
"what:alarm;" - The operation concerns only requests for sound playback from the alarm subsystem.
"what:player;" - The operation concerns only requests for sound playback, that have been queued to the sound server by the Pm.PlaySound method. |
---|
Pm.ControlSound("what:all;enable:0;");