Well, some interesting progress on the sound recorder DLL, but not a great deal yet...haven't had much time to spend on it.
Seems that the "false"/false doesn't seem to make any difference...works with both, but since it should be a boolean I have used false without double quotes.
the code I am using is:-
Code:
function LoadAudio()
{
if(MyDLL3=LoadDLL(SYSTEM_WINSYS_DIR+"bass.dll"))
{
Debug.trace("BASS loaded"+"\n")
}
else
{
Debug.trace("Bass not loaded")
}
}//End LoadAudio
function TestIt()
{
GetRev=MyDLL3.CallFn("BASS_GetVersion",false,"ulong")
Debug.trace("\n"+GetRev+"=Rev"+"\n")
}//End TestIt
function FreeIt()
{
if(MyDLL3.CallFn("BASS_Free()",false,"none"))
{
Debug.trace("\n"+"Free ran"+"\n")
}
else
{
Debug.trace("\n"+"Bummer free didn't run"+"\n")
}
Debug.trace("\n"+"done"+"\n")
}//End FreeIt
When I ran the TestIt function, the Debug window returned a value 3.3751 E+007. This should return the revision of the DLL, which should be 2.3.03, so obviously not correct, however after looking at the DLL help file, the returned value is a HEX DWORD, the HiByte contains the major revision and the LoByte the minor revision, so I tried using an array and some other things, but I still didn't get the correct answer. Then I tried inserting the returned value into a text box and the actual value was 33751043, so the debug window was truncating and changing to scientific notation.
BUT 33751043 DEC=2030003 HEX and this IS the revision of the DLL, so it works!!!!!
the next step is to figure out the process of recording!! and how to save it to a file??
Sandy