[REBOL] Determining the length of a sound before playing it
From: swhite::ci::bloomington::mn::us at: 31-Aug-2009 12:23
REBOL/View Pro will play a sound. I have done that. Does anyone know if it is possible
for a REBOL program to determine the length of a sound before playing it?
Last night my spouse was struggling with Power Point to make a slide show with background
music. The reason it was such a struggle seemed to be that it was hard to find the settings
to make that happen, and when we found some settings that APPEARED to be the ones that
SHOULD make that happen, it still did NOT happen. Defeated by complexity.
That got me thinking that it should be logically simple to make a program that does only
one thing, namely, display pictures with background music.
Determine length of music.
Obtain list of all pictures in a directory.
Determine number of pictures.
Divide length of music by number of pictures, giving duration.
Start sound playing.
For each picture,
Display the picture
Wait for the duration.
(Details are left as an exercise, as they say.)
All those steps I have seen done in various sample REBOL scripts, except for the first
one of finding out how long a sound will play.
City of Bloomington
1800 W Old Shakopee Rd
Bloomington MN 55431-3096