Edit

Share via


AudioBuffers.Explicit(AudioBuffers to IntPtr) Operator

Definition

Returns the address of the underlying AudioBufferList structure.

public static explicit operator IntPtr (AudioToolbox.AudioBuffers audioBuffers);
static member op_Explicit : AudioToolbox.AudioBuffers -> nativeint

Parameters

audioBuffers
AudioBuffers

The AudioBuffers class to extract the data from.

Returns

IntPtr

nativeint

Remarks

If you cast this object to an IntPtr, you will get the address to the underlying data structure which you can pass to any C APIs that requires a pointer to the object.

void ProcessBuffers (AudioBuffers buffers)
{
    // Call C-function that takes an AudioBufferList pointer:

    // The cast extracts the data.
    c_function ((IntPtr) buffers);
}

Applies to