469,601 Members | 2,039 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,601 developers. It's quick & easy.

Play Wave

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
4 2024
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
how about checking the x,y coordinateswith an if statement when tue play wave
Jul 20 '05 #3
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
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.

Similar topics

3 posts views Thread by Bill Dandreta | last post: by
5 posts views Thread by Slickuser | last post: by
10 posts views Thread by andrew.smith.cpp | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.