Hi
This snippet of code is in a loop, of typically 10 to 20 items.
The Array <>StartsampleArray holds the start time, in samples, of the
tracks on a CD.
It all works fine interpreted, but when compiled, when
<>StartSampleArray{$i} exceeds around 26655216 or thereabouts $Duration
turns negative, and it all falls over
<>StartSampleArray is copied from a Process array earlier in the code,
which itself is declared as a longint array

$start and $duration are part of a LEP call to Sox to split the individual
tracks from a complete CD
It looks so simple, but why wont it work compiled?

Thanks for any guidance
-pm



$Start:=String(<>StartSampleArray{$i})+"s"
If ($i<Size of array(<>StartSampleArray))
$trackDur:=<>StartSampleArray{$i+1}-<>startSampleArray{$i}
$Duration:=String($trackDur)+"s"
Else
$lastTrackDur:=<>EndofFileSamples-<>StartSampleArray{$i}
$duration:=String($lastTrackDur)+"s"
End if
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to