audioSetVolume (Function) |
Top Previous Next |
The audioSetVolume function is used to control both the volume level used by an audio node and also for muting the node. The volume level does not refer to an absolute level and may vary between different device types. Muting can be done separately from changing the volume, to make it easier to manage custom volume levels.
Input: node: SINT Default 0 The audio node to change the volume for. Available nodes:
volume: SINT (-1,0..100) Default -1 Volume level, where 0 is the lowest and 100 is the highest volume. Setting it to -1 leaves it at its current value.
mute: BOOL Default OFF Controls whether the node should be muted or not.
Returns: INT
Declaration: FUNCTION audioSetVolume : INT;
Example: INCLUDE rtcu.inc |