Hi,
REALbasic 5.5.5 (temporary)
Mac OS X 10.3.9
The following code returns 7 seconds of wasted time (watch the code below); WHY
?
On the other hand, using a MoviePlayer, there is no latency (wasted) time, but
how do I cancel the song (the MoviePlayer is not visible)...
Dim mp3Song As Sound
Dim tickStart As Double
Dim tickEnd As Double
tickStart = Ticks
mp3Song = targetSndFI.OpenAsSound
mp3Song.Play
tickEnd = Ticks
MsgBox "Latency: " + Str((tickEnd - tickStart) \ 60)
While mp3Song.isPlaying
If UserCancelled Then mp3Song.Stop
Wend
Am I right / wrong / beside my shoes ?
Emile
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>