Promotic
WikipediaLinkedInYoutubeTwitterFacebook

ControlSound - method of object Pm

Description:
This method allows to control the PROMOTIC system sound server.
Syntax:
ControlSound(sCmd As String)
Calling:
Pm.ControlSound sSound
Parameters:
sCmd(String) The parameter defines 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, 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, it starts the playbac 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;" - Disabling the requests for sound playback on the sound server.
"enable:1;" - Enabling the requests for sound playback on the sound server.
"what:xx;" (optional) - 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.
Note:
This method is not functional for Web Panels.
See also:
Example:
Disabling all sound playback requests in the sound server.
Pm.ControlSound "what:all;enable:0;"
Navigation:
 
- 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