libao# 0.8.8
play Method (device, output_samples, num_bytes)
NamespacesXiph.Audio.Output.LowLevellibaoplay(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.
Declaration Syntax
C#Visual BasicVisual C++
public static int play(
	ao_device device,
	byte[] output_samples,
	uint num_bytes
)
Public Shared Function play ( _
	device As ao_device, _
	output_samples As Byte(), _
	num_bytes As UInteger _
) As Integer
public:
static int play(
	ao_device^ device, 
	array<unsigned char>^ output_samples, 
	unsigned int num_bytes
)
Parameters
device (ao_device)
A ao_device structure as returned by open_live(Int32, ao_sample_format, IntPtr) or open_file(Int32, String, Boolean, ao_sample_format, IntPtr).
output_samples (array< Byte >[]()[])
Byte array containing audio data.
num_bytes (UInt32)
Number of bytes of audio data in the memory buffer.
Return Value
  • A non-zero value indicates success.
  • 0 indicates failure. The device should be closed.

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