KAudioPlayer::play()
Joerg Anders
j.anders at informatik.tu-chemnitz.de
Wed Mar 26 13:18:40 GMT 2003
On Wed, 26 Mar 2003, Arnold Krille wrote:
> Don't know why you would ask a reference to a SoundServerV2 and then drop
> it...
This test was useless and sould explore my problem.
>
> Will test it a soon as my kde3.1.1 is compiled...
I think here is a bug because I completed:
(again see http://rnvs.informatik.tu-chemnitz.de/kartstest/servertest.html)
> - bool checkSuspend() {
+ virtual void mousePressEvent ( QMouseEvent * e ) {
> KArtsServer *server = new KArtsServer();
> bool suspend;
+ printf("Pos 1\n"); fflush(stdout);
> if( server->server().secondsUntilSuspend() == 0) suspend=true;
> else suspend = false;
+ printf("Pos 2\n"); fflush(stdout);
> delete server;
> - return suspend;
> }
>
The result is:
Pos 1
and gdb says:
(gdb) where
#0 0x41420cc9 in Arts::Dispatcher::stringToObjectReference () from /usr/kde/3.1/lib/libmcop.so.1
#1 0x40bbd93b in Arts::SoundServerV2_base::_fromString () from /usr/kde/3.1/lib/libsoundserver_idl.so.1
#2 0x402614a0 in KArtsServer::server () from /usr/kde/3.1/lib/libartskde.so.1
#3 0x0804f011 in MyDialog::mousePressEvent (this=0x80aed88, e=0xbfffefc0) at servertest.cpp:18
...
> You have to include <arts/kartsserver.h> and <arts/soundserver.h> and link
> against -lartskde
I did it. Again: KDE is : 3.0.5a (Gentoo linux)
--
J.Anders, Chemnitz, GERMANY (ja at informatik.tu-chemnitz.de)
More information about the kde-multimedia
mailing list