audioRoute (Function) |
Top Previous Next |
Controls the routing of the audio between capture devices and playback devices.
Instead of using gsmHeadset to route audio between GSM and the analog audio in- and outputs, this function can be used for more advanced routing. It controls a single direction at a time, so to have audio running in both directions, it must be called twice. It is currently possible to have 3 routes active at the same time, each using a unique route ID. Note: gsmHeadset uses two routes when enabled, reducing the total number of available routes.
The possible devices are:
*: Extension module streams may support Capture, Playback or both. See the RTCU M2M Platform SDK Reference Manual for more details.
Input: id: INT (1..3) Default 1 The ID of the route to control. This is not related to the Device ID.
src: INT The capture device to read from . See Device ID table.
dest: INT The playback device to write to. See Device ID table.
enable: BOOL default TRUE Set to TRUE to enable the route, set to FALSE to disable the route.
Returns: INT
Declaration: FUNCTION audioRoute : INT;
Example: INCLUDE rtcu.inc END_VAR; |