Pointer to the callback function containing the code that will effectively modify original WAV PCM data. Remember that callback functions must be as fast as possible in order to avoid slowing down overall performances.
A callback function is defined like this:
[Visual Basic ]
Private Sub MyCustomCallback (
ByVal bufferSamples As IntPtr,
ByVal bufferSamplesLength As Int32,
ByVal nUserData As Int32
)
[C#]
private void MyCustomCallback (
IntPtr bufferSamples,
Int32 bufferSamplesLength,
Int32 nUserData
);
[C++]
void ReverbCallback(
IntPtr bufferSamples,
Int32 bufferSamplesLength,
Int32 nUserData
);
where
bufferSamples
|
Pointer to the buffer containing WAV PCM samples to be processed by the DSP in one of the following formats:
8-bit samples are unsigned
16-bit samples are signed
32-bit floating-point samples can range from -1 to +1: note that they are not clipped so they could be outside the mentioned range.
You can instruct the DSP using 32-bit floating-point samples only through the CustomDSP.UseFloatSamples method.
|
bufferSamplesLength
|
The length in bytes of the buffer above
|
nUserData
|
User specific data
|
|