[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-26 12:43:30
[Download RAW message or body]
On Tuesday 25 March 2003 21:49, Joerg Anders wrote:
> http://rnvs.informatik.tu-chemnitz.de/kartstest/servertest.html
> You find a very simple test program. It's central code implements the mouse
> click event:
> virtual void mousePressEvent ( QMouseEvent * e ) {
> printf("Pos 1\n"); fflush(stdout);
> KArtsServer *kartsserver = new KArtsServer();
> printf("Pos 2, kartsserver = 0x%x\n", kartsserver); fflush(stdout);
> kartsserver->server();
> printf("Pos 3\n"); fflush(stdout);
> }
Don't know why you would ask a reference to a SoundServerV2 and then drop
it...
Will test it a soon as my kde3.1.1 is compiled...
Arnold
PS: The code I have in mind is more like that:
// returns true if the soundserver is suspended.
bool checkSuspend() {
KArtsServer *server = new KArtsServer();
bool suspend;
if( server->server().secondsUntilSuspend() == 0) suspend=true;
else suspend = false;
delete server;
return suspend;
}
You have to include <arts/kartsserver.h> and <arts/soundserver.h> and link
against -lartskde
This is untested but I think it should work...
[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