|
Copyright © 2006 - 2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
Public Function InternalSetFunction (
nIdDsp as Int32,
function as DSPCallbackFunction
) as enumErrorCodes
|
|
[C#]
public enumErrorCodes InternalSetFunction (
Int32 nIdDsp,
DSPCallbackFunction function
);
|
|
[C++]
public: enumErrorCodes InternalSetFunction (
Int32 nIdDsp,
DSPCallbackFunction function
);
|
|
Parameter
|
Description
| ||||||
|
|
| ||||||
|
nIdDsp
|
Unique identifier of the custom DSP
| ||||||
|
function
|
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
|
|
Value
|
Meaning
|
|
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
|
enumErrorCodes.NOERROR (0)
|
The method call was successful.
|