AudioBuffers.Explicit(AudioBuffers to IntPtr) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
}