I have a little problem: I must use the FSOUND_DSP_Create() function but, for many raisons, I can’t use a “NULL” or “VOID” value. Then, is there a value that I can assignate to the first parameter without problem (EXCEPTION_ACCESS_VIOLATION) ???
I’m talking about the first parameter of the FSOUND_dsp_create() function.
In the definition, that’s a “FSOUND_DSPCALLBACK” (or a long integer if we look in the VB import file).
But in ALL the samples his value is a NULL pointer or a void value :-/
Because I import this function under ADA95, I can’t use a void, and the NULL look to be not the same that the NULL of c++. Then, I must use a “true” long integer value for my parameter, but HOW can I find this value ?
[quote="Bomber-Marc":3km5st0n][b:3km5st0n]I’ve NEVER see an other value than “null” or “void” for DSP_Create ??[/b:3km5st0n]
And you also say
Where it is clearly NOT passed null (the & in front of the function means to pass the Address of the function, not to execute the function and pass something)
The FSOUND_DSP_Create function is used to add your own function to the dsp chain, and so you pass this function to FSOUND_DSP_Create.
The other part of the example says NULL indeed, and I think it should work if you pass 0 at that point.
This argument is a pointer, and because pointers don’t exist in Visual Basic, you have to use a Long in visual basic.
- Adion answered 16 years ago
If I look n the DSP example, I can see:
[code:30z4pn8l]FSOUND_DSP_Create(NULL, FSOUND_DSP_DEFAULTPRIORITY_USER+100, 0);[/code:30z4pn8l]
And in the others examples too. I’ve NEVER see an other value than “null” or “void” for DSP_Create ??
If I try with 0 I get a “EXCEPTION_ACCESS_VIOLATION” and with 100, for example, I’m out of range. What can I use for a value then ????? Must I find this value with a function ?
Please login first to submit.