rem: sample.play( url ); 
add: try { sample.play( url ); } catch ( ex ) { sample.beep();  } 
context: function playSound( ThisURL ){   ThisURL = "chrome://calendar/content/sound.wav";   var url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance();   url = url.QueryInterface(Components.interfaces.nsIURL);   url.spec = ThisURL;   var sample = Components.classes["@mozilla.org/sound;1"].createInstance();      sample = sample.QueryInterface(Components.interfaces.nsISound);   sample.play( url );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a0a381da838611c0ff02e838b4cbd445cdeae9b9/calendar.js/clean/calendar/resources/content/calendar.js