Closed Bug 629081 Opened 13 years ago Closed 4 years ago

newmail sound notification is distorted

Categories

(Thunderbird :: Preferences, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jonnlion, Unassigned)

Details

(Keywords: testcase, Whiteboard: dupme?)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

when choosing a sound file to be played when a new mail arrives all I hear when i press "play" is noise. Choosing default sound returns nothing.

Reproducible: Always

Steps to Reproduce:
1.Edit -> Preferences
In the "When new message arrives:" section
2.Check "Play a sound" and "use the following sound file" 
(i.e. "megmail.wav"
3.click "play"
Actual Results:  
noise from speakers


Expected Results:  
reproduce the file correctly...

The file is not corrupted and my system reproduces it correctly when using Rythmbox player.
Unable to reproduce on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
Whiteboard: dupme?
many linux reports have been duped to bug 535955
But this doesn't seem to be about the System alert sound.
This one wants to play a custom file, which is the other option in preferences.
In my setup I do not get noise from the speaker but simply no sound.
I get this error in the Error console:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsISound.play]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: chrome://messenger/content/preferences/general.js :: <TOP_LEVEL> :: line 94"  data: no]

Is it related?
The error appears when pressing Play to test the file in the prefs dialog. When a new message arrives, there is no error and no sound.
(In reply to :aceman from comment #4)
> In my setup I do not get noise from the speaker but simply no sound.
> I get this error in the Error console:
> Error: uncaught exception: [Exception... "Component returned failure code:
> 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsISound.play]"  nsresult: "0x80040111
> (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame ::
> chrome://messenger/content/preferences/general.js :: <TOP_LEVEL> :: line 94"
> data: no]
> 
> Is it related?

No, depending on which Thunderbird you actually run this because you do not have libesd, an esd compatible sound daemon (like esound or pulseaudio) or you libcanberra cannot play sound (libcanberra is used from TB12 on).

Can someone please clarify about which type of sound this report is?
Is it about the system sound not working or the custom sound being distorted? If it's both we would need two different bugreports because both are using completely different methods to play sound.
(In reply to Wolfgang Rosenauer [:wolfiR] from comment #6)
> No, depending on which Thunderbird you actually run this because you do not
> have libesd, an esd compatible sound daemon (like esound or pulseaudio) or
> you libcanberra cannot play sound (libcanberra is used from TB12 on).
Thanks, I do not have any of that support (just Alsa) and tried on TB10.

> Can someone please clarify about which type of sound this report is?
> Is it about the system sound not working or the custom sound being
> distorted? If it's both we would need two different bugreports because both
> are using completely different methods to play sound.
I assume this is about the option to play a custom file chosen from the file picker (like a .wav). That is the original description.
I believe I'm experiencing the same problem. I have problems with notifications not being triggered, but after upgrading from Icedove 10 to 17, sound tests are working reliably. However, certain sounds are heavily distorted. My Icedove only supports WAV files for notifications. Most sounds on my systems play correctly, but a good number don't. The recording parameters appear to be the difference. I have 6 packages which provide sounds. There is uniformity in recording parameters, so a package's sounds either all play fine or all distorted. I tried one sound from each package then looked at the parameters. The good sounds are:
/usr/share/kde4/apps/ktuberling/sounds/fr/bouche.wav:   RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
/usr/share/sounds/pop.wav:                              RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
/usr/lib/libreoffice/share/gallery/sounds/applause.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 11025 Hz
/usr/share/kde4/apps/korganizer/sounds/alert.wav:       RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 8000 Hz
Also found a working "RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 22050 Hz".

The distorted sounds were:
/usr/share/sounds/KDE-Im-Phone-Ring.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 48000 Hz
/usr/share/sounds/alsa/Front_Center.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 48000 Hz

The only thing which varies is the frequency. Apparently 48000 Hz is problematic.

Bug 751047 is a ticket on a similar issue against FreeBSD. There, Aleksej says /usr/share/sounds/alsa/Front_Center.wav played for him on Debian wheezy/sid (I assume without distortion). Yet, I am using the more recent Debian jessie and that file plays distorted.
/usr/share/sounds/alsa/ is a great test case for this. All files there play differently, yet similarly. This is how I realized that what is played is not noise, but an extremely fast read. The acceleration distorts to the point where the sound becomes unrecognizable at the first listen.

aceman, I suspect you are affected by a bug fixed between 10 and 17 and by bug 531002. Please re-test with Thunderbird 17 and report.

jonnlion, how long does your noise last compared to the sound's actual duration? Could you test the sounds in /usr/share/sounds/alsa/ and see if you really get *noise* or rather an accelerated sound?
Attached file Heavily distorted file
The attached file plays as it should on Windows XP SP3, Thunderbird 17.0.8.
Summary: newmail sound notification → newmail sound notification is distorted

Christian, can you reproduce this using the testcase file?

Flags: needinfo?(chriechers)
Keywords: testcase

The testcase file plays just fine here using TB77b3 following the procedure as described by the Reporter.

Flags: needinfo?(chriechers)

Thanks Christian.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: