Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

timer controlled audio loop

My html page has a audio loop as follows:

<bgsound src="mysound.wav" loop="3">

I would like to have a pause of 1 or 2 seconds between the loop repeats. How?
0
gron
Asked:
gron
1 Solution
 
DreamMasterCommented:
The simplest (and as far as I know only) solution would be to edit the mysound.wav file to add 1 or 2 seconds of silence...that would do the trick...

Max.
0
 
COBOLdinosaurCommented:
no way to do it with bgsound, but it could be possible with imbed. However it would take some pretty tricky scripting that would be very unreliable.

Cd&
0
 
brunoCommented:
I would do that same as Max said, just add some silence to the actual file itself.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
pleasenospamCommented:
How about reloading the entire page, automatically, based on time?  I can't see any reason
why this couldn't be done, because we use this same trick to jump to another URL.
In this instance the process would continue indefinitely until the user went to another page.

Here are two examples with an immediate jump, but the parameter can be set to any amount of time:


http://personal.cfw.com/~write/no-no-no.html

http://personal.cfw.com/~write/unsocial.html

0
 
DreamMasterCommented:
Yes ok pleasenospam, you could do that, but you would rely on two extra factors (loading time, you wouldn't know when the music would actually start, which makes for a factor of uncertainty, then you need to know to the second how long the music lasts, and add extra seconds to that, and then the reloading of the page even takes extra time, so that would be an unreliable way of getting the extra time.
0
 
gronAuthor Commented:
Thanks all. I opted for DreamMaster's suggestion. I had not edited an audio file before, but it was easy enough with free editors available at:
http://www.audiomelody.com/AudioEditors.htm
0
 
DreamMasterCommented:
Glad to have been helpfull gron.. :)

Thanks for the Grade A.. :)

Max.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now