Basic sounds question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabian

    Basic sounds question

    First, I have never even attempted to use sounds in a web page (even as
    basic html) before. I'm totally green at this bit. Please assume that
    anyone who is reaching the page in question is already expecting a
    multimedia extravaganza, and possibly reading the files from a CD.



    I assume the following is correct to preload a sound file?

    preload[i] = new Sound();
    preload[i].src = "filename.w av";

    How do I make a sound file play in response to a javascript event?

    Does playing sound files affect the focus at all?

    Which sound formats are best to use from a multiplatform usability poit
    of view? The critical goal is to work on windows with ie6 and nn7 (I can
    test these), but I'd like it to be as broad-based as possible beyond
    that. I want to assume that no special plugins have/need to be
    installed.


    --
    --
    Fabian
    Visit my website often and for long periods!
    AGAM69 menghadirkan inspirasi desain kreatif, solusi digital, pengembangan teknologi, serta inovasi modern untuk kebutuhan bisnis dan profesional.


  • Jim Ley

    #2
    Re: Basic sounds question

    On Fri, 5 Dec 2003 07:11:33 +0900, "Fabian" <lajzar@hotmail .com>
    wrote:
    [color=blue]
    >I assume the following is correct to preload a sound file?
    >
    >preload[i] = new Sound();
    >preload[i].src = "filename.w av";[/color]

    Why would you assume that? Is the way to preload chickens:

    preload=new Chicken()
    preload.src="ba ntam"

    ? Of course not.

    The way to suggest a client download a sound URI is :

    preload = new Image();
    preload.src = "filename.w av";

    However that's only a tiny part of preloading, you need to sort out
    all the caching too.
    [color=blue]
    >Does playing sound files affect the focus at all?[/color]

    That would depend on how you do it...
    [color=blue]
    > I want to assume that no special plugins have/need to be
    >installed.[/color]

    not all browsers have a sound capability. either using an embed or
    iframe element is probably the most guaranteed method.

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    Working...