AFSelectEvents(3)

NAME
AFEnablePassThrough, AFDisablePassThrough - connect local audio and phone devices

SYNTAX
#include <AFlib.h>

void AFEnablePassThrough (AC ac, ABool change, ABool *old_state,
                        ABool *new_state)

void AFDisablePassThrough (AC ac, ABool change, ABool *old_state,
                        ABool *new_state)

ARGUMENTS

ac  Audio context of a device to use.

change
    To query the current pass-through state, set change to 0. If change is non-zero then pass-through will be enabled and new_state will contain 1 upon return from AFEnablePassThrough. new_state will contain 0 and pass-through will be disabled upon return from AFDisablePassThrough.

new_state
    Returns the new state.

old_state
    Returns the old state.

DESCRIPTION
The function directly connects the local audio device to the phone device, so there is no software overhead in processing the audio. While this is enabled, audio sent to the audio device is discarded, and silence is recorded.

removes this direct connection.

Note that these functions only work on interfaces that support both a local audio device and a phone device, such as DECaudio.

SEE ALSO
AF(1)

BUGS
If you encounter a reproducible bug, please submit a problem report to (af-bugs@crl.dec.com).

COPYRIGHT
Copyright 1990-1994, Digital Equipment Corporation.
See AF(1) for a full statement of rights and permissions.

AUTHORS
Digital Cambridge Research Lab