AudioBuffer.CreateReference Method

Definition

Returns an IMemoryBufferReference representation of the audio buffer.

public:
 virtual IMemoryBufferReference ^ CreateReference() = CreateReference;
IMemoryBufferReference CreateReference();
public IMemoryBufferReference CreateReference();
function createReference()
Public Function CreateReference () As IMemoryBufferReference

Returns

The IMemoryBufferReference representation of the audio buffer.

Implements

Remarks

The audio buffer is in the form of an array of samples. Each sample is a series of IEEE single-precision floating point values in a linear range from −1.0 to +1.0, one value per channel. The channels within a sample are in speaker number order, as given in the documentation for WAVEFORMATEXTENSIBLE.

For example, in the case of a left/right two-channel audio buffer, the floating point values are the left and right channels of the first sample, followed by the left and right channels of the second sample, and so on.

Applies to