Hi SF,
I have another weird issue that i think might be connected.
On compilation i am getting error : GPC0007 wrong argument type : at line that contains p$=p$+"loop 1"
I suspect there is something in my code that is causing these weird string issues.
Let me know if you or Gernot want my code to try and track down this bug.
FUNCTION playTunes:init
// LOCAL t//=GETTIMERALL()
STATIC settimer//=0
LOCAL cp,cc
LOCAL p$="playing "
STATIC c
cp=tune[c]
IF cp=-99
c=0
cp=tune[c]
ENDIF
cc=bAND(cp,1)
IF cc=1 THEN p$=p$+"loop 1" //error occurs here
IF GETTIMERALL()>settimer
DEBUG "\n swapping"
cc=bAND(cp,1)
IF cc=1
PLAYSOUND (s1,0,1)
ENDIF
cc=bAND(cp,2)
IF cc=2
PLAYSOUND (s2,0,1)
ENDIF
cc=bAND(cp,4)
IF cc=4
PLAYSOUND (s3,0,0.2)
ENDIF
cc=bAND(cp,8)
IF cc=8
PLAYSOUND (s4,0,0.8)
ENDIF
settimer=GETTIMERALL()+29000
INC c
DEBUG "\nloop"
ENDIF
NewOSDebug("Timer"+((GETTIMERALL()-settimer)/1000)+p$)
ENDFUNCTION