nsISound errors when trying to play wav/au file

RESOLVED INCOMPLETE

Status

RESOLVED INCOMPLETE
14 years ago
5 years ago

People

(Reporter: iann_bugzilla, Assigned: jag+mozilla)

Tracking

SeaMonkey 1.0 Branch
Sun
Solaris

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8a5) Gecko/20041208
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8a5) Gecko/20041208

Trying to play a wav or au file on a Solaris 8 box just generates the following
error message in the JS console:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsISound.play]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://communicator/content/pref/pref-download.js :: PreviewSound :: line 64"
 data: no]

Reproducible: Always

Steps to Reproduce:
1.Go to Edit, Preferences and select Downloads page
2.Click on browse and find either a wav or au file and select it
3.Click on preview

Actual Results:  
Error message as above

Expected Results:  
Plays the selected sound file as the OS can do using it's built in tools.
(Reporter)

Comment 1

14 years ago
The code in 1.8a5 is something along the lines of:
gSound = Components.classes["@mozilla.org/sound;1"].createInstance(Component
s.interfaces.nsISound);
var ioService = Components.classes["@mozilla.org/network/io-service;1"]     
                     .getService(Components.interfaces.nsIIOService);           
var url = ioService.newURI(soundURL, null, null);                           
gSound.play(url)
nsSounds on Unix uses esound.  Sounds like you don't have that on your Solaris box?
Can you reproduce with SeaMonkey v1.1.9 ?
Version: unspecified → SeaMonkey 1.0 Branch

Comment 4

5 years ago
Do we still use esound?
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.