[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KAudioPlayer::play()
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2003-03-25 15:13:01
[Download RAW message or body]

On Dienstag, 25. März 2003 10: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.
>
> My question: It there a possibility to find out whether the
> music can be played  before invoking "KAudioPlayer::play(...)"?

If this is a short signal sound you could try KNotifyClient
I suppose it will not play the sound if it cannot play it right now.

Weird thing is that KAudioPlayer docs say the file might not be played at 
all, but somehow it seems to favor a long delay over not playing.

Cheers,
Kevin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[Attachment #3 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic