|
Page Updated: September 08, 2005
Latest Version: 0.1.359 |
|
Debug |
Install | File
I/O |
RDF |
Network |
Sound | Utils |
XUL | Zip
|
|
|
Home | Mailing List |
Install |
Source Code |
Downloads | Bugs
| docs
| clients |
Sound
File: sound/sound.js
Status: Reasonably Stable
Module Identifier: jslib_sound
Fuction List
- Constructor
- Sound
- can be initialized with or without a url
- Members
- init (aURL)
- initialize using a URL
- play ()
- play the sound
- beep ()
- issue a system beep
Example
To use the Sound library:jslib.init(this);
include (jslib_sound);
var s = new Sound;
s.beep();
s.init("http://jslib.mozdev.org/test.wav");
s.play();
s.init("file:///C:/Windows/Media/chord.wav");
s.play();