KAudioPlayer::play()

Neil Stevens neil at qualityassistant.com
Tue Mar 25 09:16:31 GMT 2003


-----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 at 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-----



More information about the kde-multimedia mailing list