This is an advanced feature that allows you to use your own buffer provider.
When a custom provider is set, DXVUMeterNETGDI will query the provider to obtain the buffer data, instead of using its internal audio monitoring routines.
This can be useful if your application is gathering the buffer data from a non standard source or if, for example, you want to plot some data that is not directly provided by a sound card.
Namespace: NDXVUMeterNETAssembly: DXVUMeterNETGDI (in DXVUMeterNETGDI.dll) Version: 3.0.4021.33606 (3.1.0.0)
Syntax
C# |
---|
public void SetCustomBufferProvider( bool enabled, DXVUMeterNETGDI..::..CustomBufferProvider userFunction ) |
Visual Basic |
---|
Public Sub SetCustomBufferProvider ( _ enabled As Boolean, _ userFunction As DXVUMeterNETGDI..::..CustomBufferProvider _ ) |
Visual C++ |
---|
public: void SetCustomBufferProvider( bool enabled, DXVUMeterNETGDI..::..CustomBufferProvider^ userFunction ) |
Parameters
- enabled
- Type: System..::..Boolean
Use to control the state of the provider. If set to False, DXVUMeterNETGDI will use its internal provider.
- userFunction
- Type: NDXVUMeterNET..::..DXVUMeterNETGDI..::..CustomBufferProvider
This is a pointer to the function, provided by the user, from which DXVUMeterNETGDI is expected to receive the buffer data.
Remarks
The userFunction will be queried at specific intervals, based on the various parameters that control the amount of data that should be retrieved from the buffer.
These parameters include: