NAME

wavchan, allchan - Determine the active channel(s) for I/O

SYNOPSIS

#include "wiodef.h"
short wavchan (WVFILE *wfp, short channel)
short allchan (WVFILE *wfp)

DESCRIPTION

wavchan() sets the waveform associated with wfp to read/write the requested channel(s). To choose all channels, channel should be set to -1.
allchan() sets the waveform associated with wfp to read/write all channels. (This is equivalent to wavchan(wfp, -1))

RETURN VALUES

Returns the requested channel number on success or a -2 for an error.

SEE ALSO

chgnchan(), numchan(), whichchan(), isallchan(),
Libcwav library

AUTHOR

H.T.Bunnell, Shirley Peters