By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,743 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

Play Wave

P: n/a
This is a simple question. How do I preload a wave file and play it on
command?

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
In article <13*************************@dcsi.net>, Dennis M. Marks
<de******@dcsi.net> wrote:
This is a simple question. How do I preload a wave file and play it on
command?


My web page opens with a train entering from the left and stopping in
the center of the heading where it stays. I want a sound saying "all
aboard": to play at this time. Not sooner or later. I would like to
preload it so there is no delay after the train stops. I can't figure
out how to start a sound at a specific point in a javascript function.
The function does multiple setTimeouts until the train is centered.

--
Dennis M. Marks
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 20 '05 #2

P: n/a
how about checking the x,y coordinateswith an if statement when tue play wave
Jul 20 '05 #3

P: n/a
Dennis M. Marks wrote:
This is a simple question. How do I preload a wave file and play it on
command?


This is a simple answer: You cannot do that with client-side JavaScript.
PointedEars
Jul 20 '05 #4

P: n/a
In article <3F**************@PointedEars.de>, Thomas 'PointedEars' Lahn
<Po*********@web.de> writes:
Dennis M. Marks wrote:
This is a simple question. How do I preload a wave file and play it on
command?


This is a simple answer: You cannot do that with client-side JavaScript.


So you can't set the src of an image (JS image object) to a .wav file and then
dynamically insert the code to make it play? WOW!
--
Randy
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.