AFPlaySamples(3)					     AFPlaySamples(3)



NAME
  AFPlaySamples	- play audio

SYNTAX
  #include <AF/AFlib.h>
  #include <AF/AFUtils.h>

  ATime	AFPlaySamples (AC ac, ATime startTime,
					  int nbytes, unsigned char *buf)

ARGUMENTS

  ac	    An audio context containing	the audio device that will receive
	    the	play data.

  startTime startTime specifies	the audio device time at which the first sam-
	    ple	will be	played.

  nbytes    The	number of bytes	(not samples) of audio data.

  buf	    A pointer to the audio sample data.

DESCRIPTION
  The AFPlaySamples function will send the audio data to the server and
  return when all data has been	successfully placed into server	or audio dev-
  ice internal buffers.	 AFPlaySamples returns the current time	of the audio
  device when the data has been	accepted by the	server.

  The encoding type, number of channels, and endian-ness of the	play data are
  specified in the audio context. The block size specified by nbytes must be
  a unit size of the encoding type.

SEE ALSO
  AFGetTime(3),	AFRecordSamples(3), AFCreateAC(3), AF_samples_sizes(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