rem: var soundURL = document.getElementById( "alarmsoundpath" ).value; var gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound);  if (soundURL.indexOf( "file: gSound.playSystemSound(soundURL); } else { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var url = ioService.newURI(soundURL, null, null); gSound.play(url) } 
add: var soundURL = document.getElementById("alarmsoundpath").value; var soundiface = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var url = ioService.newURI(soundURL, null, null); soundiface.init(); soundiface.play(url); 
context: function previewAlarm() {   var soundURL = document.getElementById( "alarmsoundpath" ).value;   var gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound);   if (soundURL.indexOf( "file://" ) == -1) {     gSound.playSystemSound(soundURL);   }   else {     var ioService = Components.classes["@mozilla.org/network/io-service;1"]                      .getService(Components.interfaces.nsIIOService);     var url = ioService.newURI(soundURL, null, null);     gSound.play(url)   }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1859430d9f74a1ed90b8f04eb63bc41b37037e1c/alarmPrefs.js/clean/calendar/resources/content/pref/alarmPrefs.js