<HTML>
<HEAD>
<TITLE>Busy cursor - wait while quicktime sound is played.</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana">Hello RunRev support.<BR>
ITinfo & INDesign has 3 professionel licenses.<BR>
<BR>
<B>Platform<BR>
</B>Present Rev. version and OS: Revolution 1.1.1 on Mac OS X 10.2.2 (but it would be rather nice i compatible with Win/Mac OS 9 as well).<BR>
<BR>
<B>Question<BR>
</B>We previously used the external Record sound to record sounds and store them.<BR>
And when playing the files we could use “wait until the sound is done. And it worked perfect!<BR>
<BR>
How do we get the pause/busy cursor effect with the “record sound file” quicktimeformat.<BR>
<BR>
In some cases we need to play 6-36 sentences with one script – and we need to make the script wait until the previous one has finished before starting the next. And even when only playing one we want the cursor to be “busy” and to make it impossible for the user to interfere while the sound is playing. “Wait until the sound is done” did this, but doesnt work with the QT files.<BR>
<BR>
Best regards<BR>
<BR>
Carsten Levin<BR>
<BR>
Ps. our old and new scripts pasted here:<BR>
<BR>
<B>First the old aif external example – record and playing in the same script:<BR>
</B>on srtoptag<BR>
    get extInit(MacinfoBA,3050298)<BR>
    put  glbstilfilsti & "ress/sounds/opgavelyde/" & glbLydnavn & ".aif" into tempSOUND<BR>
    ext_recordSound tempSOUND,1<BR>
    set the cursor to busy  <BR>
    play tempSOUND<BR>
    wait until the sound is done<BR>
end srtoptag<BR>
<BR>
<BR>
<B>The new scripts that works perfectly well, except for the missing cursorbusy pause. First the record script and then the play script:<BR>
</B>We are recording and storing sound files on the disk with this script:<BR>
on srtoptagopgavelyd<BR>
  global glbglosefilsti<BR>
  global glblydformat<BR>
  global  glbopgavenummer<BR>
  record sound file (glbglosefilsti & "ress/sounds/opgavelyde/opgavetale" & glbopgavenummer &".mov")as glblydformat<BR>
end srtoptagopgavelyd<BR>
glbglosefilsti is the path to the folder with our revolution stack.<BR>
glblydformat is where we deside what sound format to use.<BR>
glbopgavenummer is the specifik sound number.<BR>
<BR>
We are playing the sound files with this script:<BR>
on srtafspilopgavelyd<BR>
  global glbglosefilsti<BR>
  global  glbopgavenummer<BR>
  play videoclip (glbglosefilsti & "ress/sounds/opgavelyde/opgavetale" & glbopgavenummer &".mov")<BR>
end srtafspilopgavelyd <BR>
</FONT>
</BODY>
</HTML>