[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-multimedia
Subject: Re: KAudioPlayer::play()
From: Neil Stevens <neil () qualityassistant ! com>
Date: 2003-03-25 9:16:31
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday March 25, 2003 01:07, Joerg Anders wrote:
> Hi all!
>
> I use the "KAudioPlayer::play(...)" static function to play an
> MP3 file. This works but some users are running an ALSA pcm application
> in parallel. This apparently avoids plaing my MP3 file.
>
> This were no problem. But unfortunately the playing is suspended
> and the MP3 is played as soon as the ALSA pcm device becomes free.
>
> Of course the music is played hours later in a wrong contect and the
> users are surprised and frustrated.
Try using KNotifyClient instead of KAudioPlayer then. KNotify doesn't let
endless numbers of sounds build up.
> My question: It there a possibility to find out whether the
> music can be played before invoking "KAudioPlayer::play(...)"?
No. Some other program hogging the sound device, keeping aRts from using
it, will keep *any* KDE app from doing sound notifications of any kind.
- --
Neil Stevens - neil@qualityassistant.com
"The shepherd drives the wolf from the sheep's throat, for which the
sheep thanks the shepherd as a liberator, while the wolf denounces him
for the same act as the destroyer of liberty." -- Abraham Lincoln
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+gB51f7mnligQOmERAnO/AJ4iRgZeOjaMTh3J40woldi4RtsLVwCcCcsf
A1wIuLzhRlvzFUectO5+7Lw=
=CU+S
-----END PGP SIGNATURE-----
_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic