Bug 178296 - Knotify cuts or doesn't play short notifications
Summary: Knotify cuts or doesn't play short notifications
Status: RESOLVED UPSTREAM
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (other bugs)
Version First Reported In: 4.2.80 (KDE 4.2 Beta 1)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Olivier Goffart
URL:
Keywords:
: 159872 179542 195800 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-20 17:40 UTC by Kristjan Ugrin
Modified: 2009-06-09 21:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
short wav file (from ubuntu sounds) (20.04 KB, audio/wav)
2008-12-20 17:41 UTC, Kristjan Ugrin
Details
very short wav (3.97 KB, audio/x-wav)
2009-01-04 13:30 UTC, Matthias Kretz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristjan Ugrin 2008-12-20 17:40:47 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

When assigning short audio notifications via knotify, they are being cut or not played at all.

A problematic file:
---
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
---

Steps to reproduce:
- assign a short wav file to an event (will attach one for testing)
- click play

This is not a phonon or phonon backend issue, since it plays fine in amarok 2.x
Comment 1 Kristjan Ugrin 2008-12-20 17:41:20 UTC
Created attachment 29488 [details]
short wav file (from ubuntu sounds)
Comment 2 Dario Andres 2009-01-03 21:56:18 UTC
*** Bug 179542 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-01-03 21:59:29 UTC
@Matthias: is a known issue that Phonon have problems with short wav files? (I think I've read something)
Comment 4 Matthias Kretz 2009-01-04 01:36:05 UTC
There must have been a report about it but I can't find it atm. Anyway, the bug was at that time fixed in libxine: all short sounds played till the end. xine 1.1.9 I think was the release. Since then it seems to have been broken again. I'll look into whether 1.1.9 works and if yes the report needs to move to upstream.
Comment 5 Matthias Kretz 2009-01-04 12:54:02 UTC
As far as I can tell it's a bug in the wav-code in xinelib. Kristjan, do those wavs really play fine in Amarok? I have a short wav that doesn't play in Amarok at all...
Comment 6 Kristjan Ugrin 2009-01-04 13:10:32 UTC
Yes, just checked again, everytime I press play amarok 2.x plays it fine (recent svn version). This very same file is not heard when playing via knotify.
As far as I know amarok uses phonon too, and currently I have xine backend only.

@Matthias Kretz: can you please attach that wav so I can try it too?
Comment 7 Matthias Kretz 2009-01-04 13:30:09 UTC
Created attachment 29892 [details]
very short wav
Comment 8 Kristjan Ugrin 2009-01-04 14:50:59 UTC
Indeed neither amarok 2.x plays your wav file, so probably it is a phonon/xine issue.
Mine sample however it is normally played in amarok, but not with knotify.

I also tested with a set of ubuntu sounds, amarok cut som samples on start or at the end, so probably it is phonon / xine issue.
Comment 9 Matthias Kretz 2009-01-04 15:52:57 UTC
Here's my patch to xine-lib, if you can please check whether it fixes your problem completely:

http://sourceforge.net/mailarchive/forum.php?thread_name=a72a0e1d49c5f8efb4a7.1231073281@WhiteStar&forum_name=xine-devel

If the problems remains, please reopen this report. Otherwise the bug is in xine-lib.
Comment 10 Matthias Kretz 2009-01-04 16:41:44 UTC
SVN commit 905549 by mkretz:

Compile a copy of the xine wav demuxer as it should get shipped with xine-lib 1.1.16. Compile it only if compiling against xine-lib < 1.1.16 and even if it is compiled in use it only if the runtime version is < 1.1.16.

This fixes #178296 without the need to update to xine-lib 1.1.16.

CCBUG: 178296


 M  +1 -0      CMakeLists.txt  
 A             demux_wav.c   [License: GPL (v2+)]
 A             macros.h   [License: LGPL]
 M  +11 -0     plugins.c  
 M  +11 -0     xineengine.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=905549
Comment 11 Matthias Kretz 2009-01-04 16:44:33 UTC
*** Bug 159872 has been marked as a duplicate of this bug. ***
Comment 12 Vladimir Kanazir 2009-06-09 21:02:15 UTC
*** Bug 195800 has been marked as a duplicate of this bug. ***