[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

These functions can be used to put your task to sleep while a sound plays.
Wait() takes a wake-up mask as its argument. The wake-up mask is usually
the mp_SigBit of a MsgPort that you have set up to get replies back from
the audio device.

WaitPort() will put your task to sleep while a sound plays.  The argument
to WaitPort() is a pointer to a MsgPort that you have set up to get
replies back from the audio device.

Wait() and WaitPort() will not remove the message from the reply port.
You must use GetMsg() to remove it.

You must always use Wait() or WaitPort() to wait for I/O to finish with
the audio device.