libao documentation

libao version 0.8.5 - 20040312


declared in "ao/ao.h";

Open a live playback audio device for output.

ao_device* ao_open_live(int driver_id, ao_sample_format *format, ao_option *options);


The ID number of the driver as returned by either ao_driver_id() or ao_default_driver_id().
Pointer to a struct describing the sample format. The caller retains ownership of this structure.
A linked list of options to be passed to the driver or NULL if no options are needed. Unsupported options are ignored.

Return Values

  • non-NULL pointer inicates success. This pointer must be passed in subsequent calls to ao_play() and ao_close().
  • NULL indicates failure. errno will contain the specific cause of the failure:
  • Notes

    File output drivers cannot be used with this function. Use ao_open_file() instead.

    copyright © 2001-2003 Stan Seibert

    libao documentation

    libao version 0.8.5 - 20040312