|
Copyright © 2001-2008 MultiMedia Soft
Return to Table of contents
|
|
[Visual Basic]
control.CustomDSP.InternalSetFunction (
nPlayer as Integer,
nIdDsp as Long,
pCallback as Long
) as enumErrorCodes
|
|
[C++]
short control.CustomDSP.InternalSetFunction (
short nPlayer,
long nIdDsp,
long pCallback
);
|
|
Parameter
|
Description
| ||||||
|
|
| ||||||
|
nPlayer
|
Number representing the zero-based index of the involved player
| ||||||
|
nIdDsp
|
Unique identifier of the custom DSP
| ||||||
|
pCallback
|
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 ]
Public Sub MyCustomCallback(
ByVal bufferSamples As Long,
ByVal bufferSamplesLength As Long,
ByVal nUserData As Long
)
[Visual C++]
void MyCustomCallback (
void *bufferSamples,
DWORD bufferSamplesLength,
DWORD 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.
|