471,898 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,898 software developers and data experts.

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 2126
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 YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.