PDA

View Full Version : ec_ReleaseSound(pSound); Not Working in Script Editor


vertigo
05-06-2008, 08:41 PM
Guys,

ec_pSound pSound=ec_GetSound("im-briefloop.wav");
ec_ReleaseSound(pSound);

I tested the code above and works as advertised in a .dll. It does not work in the Script Editor.

I'm getting a similar error to the ec_FindFile() in the script editor that says the following "Err :No matching signatures to ec_ReleaseSound(ec_pSound&)"

What does this mean? Is the function not wrapped yet?

Christian

vertigo
05-06-2008, 08:50 PM
Add ec_StopSound() to the not working in Script Editor list. I did confirm that this function works in a .dll.

Are there a number of known functions not working in the Script Editor yet?

bmistal
05-06-2008, 09:04 PM
Overloaded functions don't work yet in the script editor. Still trying to get back to that one to fix. Try ec_ReleaseSoundA / ec_StopSoundA when passing in a string parameter, and the ec_ReleaseSoundB / ec_StopSoundB / etc. when passing in an ec_pSound handle.

Hope that helps!

Cheers,
Ben

vertigo
05-06-2008, 09:11 PM
Ben,

That worked thanks. I've only been using the Script Editor one night and I'm already hooked. This new tool is awesome.

Only down side is not being able to make any Win32 calls but being able to run some quick tests in the Editor saves a lot of time.

Cheers!

Christian

Radishworks
05-06-2008, 09:20 PM
Glad you like the new CScript language. This is still a "preview" feature, with a lot more to come. You are already finding some of the little issues we need to address. There is also some preformance issues that will get better, the vars need to display in the vars list in the script editor and there will be the Intellisense. More coming.