AFQueryPhone(3)

NAME
AFQueryPhone - query state of phone audio device

SYNTAX
#include <AF/AFlib.h>

void AFQueryPhone (AC ac, int *hs_state, int *loop_state)

ARGUMENTS

ac  The audio context of a phone device.

hs_state
    The state of the phone hookswitch is returned here.

loop_state
    The state of the phone loop is returned here.

DESCRIPTION
The function returns the current hookswitch state and the loop current detection state in hs_state and loop_state respectively.

NOTES
The only phone device supported is DECaudio.

SEE ALSO
AFCreatePhoneAC(3), AFDialPhone(3), AFHookSwitch(3), AFFlashHook(3)
AAudioDeviceDescriptor(3)
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