Port Objects

Port objects (returned by al.openport() have the following methods:
\begin{funcdesc}{closeport}{}
Close the port.
\end{funcdesc}

\begin{funcdesc}{getfd}{}
Return the file descriptor as an int.
\end{funcdesc}

\begin{funcdesc}{getfilled}{}
Return the number of filled samples.
\end{funcdesc}

\begin{funcdesc}{getfillable}{}
Return the number of fillable samples.
\end{funcdesc}

\begin{funcdesc}{readsamps}{nsamples}
Read a number of samples from the queue, b...
...igh byte, low byte) if you have set
the sample width to 2 bytes).
\end{funcdesc}

\begin{funcdesc}{writesamps}{samples}
Write samples into the queue, blocking if ...
...s are
encoded as described for the \code{readsamps} return value.
\end{funcdesc}

\begin{funcdesc}{getfillpoint}{}
Return the \lq fill point'.
\end{funcdesc}

\begin{funcdesc}{setfillpoint}{fillpoint}
Set the \lq fill point'.
\end{funcdesc}

\begin{funcdesc}{getconfig}{}
Return a configuration object containing the current configuration of
the port.
\end{funcdesc}

\begin{funcdesc}{setconfig}{config}
Set the configuration from the argument, a configuration object.
\end{funcdesc}

\begin{funcdesc}{getstatus}{list}
Get status information on last error.
\end{funcdesc}