libao# 0.8.8
libao Class
NamespacesXiph.Audio.Output.LowLevellibao
libao P/Invoke wrapper.
Declaration Syntax
C#Visual BasicVisual C++
public static class libao
Public NotInheritable Class libao
public ref class libao abstract sealed
Members
All MembersMethods



IconMemberDescription
ao_is_big_endian()()()
Test if this computer uses big-endian byte ordering. Provided as a convenience function.

append_option(IntPtr%, String, String)
Append a key-value pair to a linked list of options. The key and value strings are duplicated into newly allocated memory, so the calling function retains ownership of the string parameters.

close(ao_device)
Closes the audio device and frees the memory allocated by the device structure.

default_driver_id()()()
Returns the ID number of the default live output driver. If the configuration files specify a default driver, its ID is returned, otherwise the library tries to pick a live output driver that will work on the host platform.

driver_id(String)
Looks up the ID number for a driver based upon its short name. The ID number is need to open the driver or get info on it.

driver_info(Int32)
Get information about a particular driver.

driver_info_list()()()
Get a list of the ao_info structures for all of the available drivers.

file_extension(Int32)
Returns the normal file extension associated with a particular driver (like "wav" or "au"). This is just an information function to allow library users to guess appropriate file names. You can safely ignore the recommended extension.

free_options(IntPtr)
Free all of the memory allocated to an option list, including the key and value strings.

initialize()()()
This function initializes the internal libao data structures and loads all of the available plugins. The system and user configuration files are also read at this time if available. The library must be initialized before any other libao functions can be used.

open_file(Int32, String, Boolean, ao_sample_format, IntPtr)
Open a file for audio output. The file format is determined by the audio driver used.

open_live(Int32, ao_sample_format, IntPtr)
Open a live playback audio device for output.

play(ao_device, array<Byte>[]()[], UInt32)
Play a block of audio data to an open device. Samples are interleaved by channels (Time 1, Channel 1; Time 1, Channel 2; Time 2, Channel 1; etc.) in the memory buffer.

shutdown()()()
This function unloads all of the plugins and deallocates any internal data structures the library has created. It should be called prior to program exit.

Inheritance Hierarchy
Object
libao

Assembly: libao-sharp (Module: libao-sharp) Version: 0.8.8.18341