thien at unimelb.edu.au
Mon Oct 9 18:26:18 CDT 2006
I have tried to find an answer to this on the list but can't, so
apologies if it has been discussed before.
I am trying to get specified offsets in a media file repeated using looping.
I have the start and end times in two fields and the play button
calls the player using those times. This has all been working well
for some time now.
I have a play button and a 'set start' and 'set end' button which
inserts the timecodes into the appropriate field. This allows me to
listen to a media file and to reset timecodes at will. I then have a
'repeat' button which loops, using the script below.
If I loop, it starts from the correct timecode for the first
iteration, but then reverts to the previously called start timecode
for the second and subsequent loops, even though the 'start' field
set the looping of player "audplayer" to true
set the currenttime of player "audplayer" to 0
put fld "audioname" into TempAud
set the filename of player "audplayer" to TempAud
put the timeScale of player "audplayer" into samplerate
set the playSelection of player "audplayer" to true
put fld "start" into startFN
put fld "end" into endFN
set the currenttime of player "audplayer" to round(samplerate*startFN)
set the endtime of player "audplayer" to round(samplerate*endFN)
start player "audplayer"
Any suggestions on how I can get it to loop always from the proper start time?
Pacific And Regional Archive for Digital Sources in Endangered Cultures
nicholas.thieberger at paradisec.org.au
Department of Linguistics and Applied Linguistics
University of Melbourne
Ph 61 (0)3 8344 5185
More information about the use-livecode