ControlSound - method of the Pm object

Controls of the sound server of the PROMOTIC system.
Empty ControlSound(String sCmd)
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.
This method is not functional in Web panels.
See also:
- Pm.PlaySound (method)
Disabling all sound playback requests in the sound server.
JavaScriptVBScriptSelect and copy to clipboard


Pm8.02.13: in the INFO system, an error was generated into /Errors/Global even if the method worked correctly.
Pm8.02.00: Created
PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- ControlSound
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice