0
0

Hi,

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) ???

  • You must to post comments
0
0

why do you want to use a null or a void value ? It’s dangerous … Your code must be efficient and thread safe for accurate results or you will run with some trouble. Can you post a snippet of your code ?

  • You must to post comments
0
0

If I look n the DSP example, I can see:

[code:30z4pn8l]FSOUND_DSP_Create(&DSP_ReverbCallback, ...)[/code:30z4pn8l]

and

[code:30z4pn8l]FSOUND_DSP_Create(NULL, FSOUND_DSP_DEFAULTPRIORITY_USER+100, 0);[/code:30z4pn8l]

but

[code:30z4pn8l]void *DSP_ReverbCallback(...)[/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 ?

  • You must to post comments
0
0

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 ?

  • You must to post comments
0
0

You say
[quote="Bomber-Marc":3km5st0n][b:3km5st0n]I’ve NEVER see an other value than “null” or “void” for DSP_Create ??[/b:3km5st0n]
[/quote:3km5st0n]

And you also say

[quote="Bomber-Marc":3km5st0n]
[code:3km5st0n]FSOUND_DSP_Create(&DSP_ReverbCallback, ...)[/code:3km5st0n]
[/quote:3km5st0n]

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.

  • You must to post comments
0
0

The address of a function ? Ok, I can make that, but I dont know if that’s compatible…
But, I haven’t realy understand, I can put only NULL or a function address ?

  • You must to post comments
0
0

I had some troubles with it too.
But I use C++…

Under http://52.88.2.202/forum/viewtopic.php?t=743

you find a C++ Class which handles all those things,
belonging to DSP and FMOD (CREATE bla bla…)

Devil

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.