AudioInputIsAvailable
From TrillWiki
The audioInputIsAvailable function allows a plugin to find out whether or not the microphone is currently available for use as the input device.
Compatibility: 3.0 and higher
Contents |
Syntax
plugin_send(MYGUID,"audioInputIsAvailable",NULL);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
AudioInputIsAvailable utilitizes the NONE structure.
There is no structure used for this function or notification. For functions, the parameter passed to plugin_send should be a NULL. For notifications, the 'data' field may still contain a parameter, but it will not be a structure; if so, it will be detailed below.
Return Value
This function returns '1' if the microphone is available, or '0' if it is in use elsewhere.
Remarks
This function is useful to do before attempting to do audioInputInitialize, rather than simply attempting to initialize and failing.
