[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KAudioPlayer::play()
From: Arnold Krille <kde () arnoldarts ! de>
Date: 2003-03-25 19:39:10
[Download RAW message or body]
On Tuesday 25 March 2003 19:16, Joerg Anders wrote:
> On Tue, 25 Mar 2003, Kevin Krammer wrote:
> > 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.
> Unfortunately this is not true. I blocked a KNotifyClient::userEvent (..)
> call with a 2nd sound application for 2 hours. After de-blocking
> KNotifyClient remembered it shall play something and the sound started :-((
> Sombody told me to use the KartsServer. I shall ask whether it is
> suspended. But unfortunately I don't know how.
Ok, I will try to give you a short draft:
KArtsServer can give you a reference to a Arts::SoundServerV2 with server().
Looking in arts/soundserver.idl (you have to include arts/soundserver.h)
there is a function secondsUntilSuspend() which tells you how many seconds
till the soundserver suspends, if it give you -1 all is well it wont suspend
since there are active modules...
You could also take a look at kdemultimedia/arts/tools. The artscontrol has
abilities to check for suspend-state. Maybe you look and copy and paste.
This is what I think of and which should work...
Arnold
PS: Ask If you do not understand something. Please don't tell others I didn't
explain it enough. Thats not good for my karma;-)
[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