Closed Bug 179138 Opened 23 years ago Closed 22 years ago

nsSound::Play doesn't

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: akkzilla, Assigned: blizzard)

References

Details

(Keywords: fixed1.4.1)

Attachments

(2 files, 1 obsolete file)

I've been helping Aaron test bug 176602, but it turns out nsSound::Play doesn't do anything on Redhat 7.3 (haven't tried other distros yet). Sound on this box works fine: I use sound in lots of other apps. Chris, if you're the wrong person, sorry, please reassign. Your name seemed to be on other linux sound bugs so I took a guess. I am getting to nsSound::OnStreamComplete, and if I un-ifdef the printf I see f: 1 | c: 1 | sps: -18 | abps: -36 | ba: 2 | bps: 16 | rate: -36 The write at the end writes 1444 bytes (exactly the length of notfound.wav) to the fd, returning 1444. But no sound is heard, whether or not I have esd running. The wav file plays fine outside of mozilla using play (from sox-12.17.3-4), or if I start esd and run esdplay on the wav file. Other testing reports (in bug 176602) say that it doesn't work on stock Redhat 8 either, but it does work after installing the upgrade "arts-2.2.2-1.i386.rpm". No reports yet from any non-Redhat systems; I'll try pulling a debian tree one of these days. This is with gtk1. gtk2 doesn't currently build for me, probably a configure issue (it's not finding my gtk2 include files) though I have re-run configure after setting MOZ_WIDGET_TOOLKIT=gtk2. (Is there any way yet to have both gtk and gtk2 widget libraries build automatically in the same tree?)
Akkana, put those 2 options into your .mozconfig file, you can get a gtk2 build easily :) ac_add_options --enable-default-toolkit=gtk2 ac_add_options --disable-gtktest my report for RedHat 8.0 is wrong, it just works for gtk2 build. The arts-2.2.2-1.i386.rpm was installed for fixing the segment fault issue of xmms.
Blocks: 179817
*** Bug 179817 has been marked as a duplicate of this bug. ***
See my patch for bug 177280. GET_DWORD macro was incorrect and rate was not being set corrected.
Blocks: gtk2
Fixes problem with playback of some wav files. Implements playSystemSound as well.
Attachment #124035 - Flags: superreview?(blizzard)
Attachment #124035 - Flags: review?(pavlov)
*** Bug 104174 has been marked as a duplicate of this bug. ***
Blocks: 207436
pavlov and blizzard, can I get a r/sr?
Attachment #124035 - Flags: review?(pavlov) → review+
blizzard, can I get a sr?
Comment on attachment 124035 [details] [diff] [review] Patch for nsSound.cpp v1 Can we get this in for 1.4?
Attachment #124035 - Flags: approval1.4?
Attachment #124035 - Flags: superreview?(blizzard) → superreview?(bryner)
Comment on attachment 124035 [details] [diff] [review] Patch for nsSound.cpp v1 sr=blizzard
Attachment #124035 - Flags: superreview?(bryner) → superreview+
I checked the patch here in, hope you don't mind: Checking in widget/src/gtk/nsSound.cpp; /cvsroot/mozilla/widget/src/gtk/nsSound.cpp,v <-- nsSound.cpp new revision: 1.35; previous revision: 1.34 done leaving open to maybe get it on 1.4 branch. Does Gtk2 need a similar patch?
I imagine it does.
Attached patch Patch for GTK2 nsSound.cpp (obsolete) — Splinter Review
Attachment #125245 - Flags: superreview?(blizzard)
Attachment #125245 - Flags: review?(pavlov)
Previous patch had a syntax error. I don't have a gtk2 build environment.
Attachment #125245 - Attachment is obsolete: true
Attachment #125249 - Flags: superreview?(blizzard)
Attachment #125249 - Flags: review?(pavlov)
The Gtk2 patch here works - I created an identical patch and tested it.
Attachment #125245 - Flags: superreview?(blizzard)
Attachment #125245 - Flags: review?(pavlov)
Flags: blocking1.4?
Comment on attachment 125249 [details] [diff] [review] Patch for GTK2 nsSound v1.1 sr=blizzard and I checked it in. I changed a few style-related things, but it's the same patch.
Attachment #125249 - Flags: superreview?(blizzard)
Attachment #125249 - Flags: superreview+
Attachment #125249 - Flags: review?(pavlov)
Comment on attachment 124035 [details] [diff] [review] Patch for nsSound.cpp v1 moving approval request forward.
Attachment #124035 - Flags: approval1.4? → approval1.4.x?
Comment on attachment 124035 [details] [diff] [review] Patch for nsSound.cpp v1 Can we get this in for 1.4.1?
mozilla1.4 shipped. unsetting blocking1.4 request.
Flags: blocking1.4?
blizzard, cbiesinger, can you guys get these patches into the 1.4 branch? We're short on time.
Comment on attachment 124035 [details] [diff] [review] Patch for nsSound.cpp v1 a=asa (on behalf of drivers) for checkin to the 1.4 branch
Attachment #124035 - Flags: approval1.4.x? → approval1.4.x+
OK, both gtk1 and gtk2 patch checked into the 1.4 branch: Checking in gtk/nsSound.cpp; /cvsroot/mozilla/widget/src/gtk/nsSound.cpp,v <-- nsSound.cpp new revision: 1.34.20.1; previous revision: 1.34 done Checking in gtk2/nsSound.cpp; /cvsroot/mozilla/widget/src/gtk2/nsSound.cpp,v <-- nsSound.cpp new revision: 1.5.4.1; previous revision: 1.5 done This means this bug is fixed, I would say. marking so.
Status: NEW → RESOLVED
Closed: 22 years ago
Keywords: fixed1.4.1
Resolution: --- → FIXED
Blocks: 224532
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: