j.windmeisser at elogix.info
Mon Dec 8 19:06:41 GMT 2003
now that I have managed to convert ulaw to wav and the sound plays at it
should, I have problems with the KDE-Arts classes.
I have downloaded all the sources that are needed for KAudioPlayStream, the
program compiles and it starts. But, whenever I want to play a sound with the
above mentioned class I hear nothing and the program exits with no error.
Are those classes working? I've noticed that
KAudioPlayStream::write(QByteArray &data) is empty and seems do do nothing.
Thank you in advance
The stderr output is:
-- mcop warning: user defined signal handler found for SIG_PIPE, overriding
QString, QObject*, const char*)]
kisdnmonitor: [void KAudioPlayStreamPrivate::initaRts()]
kisdnmonitor: [KAudioPlayStream::KAudioPlayStream(KArtsServer*, QString,
QObject*, const char*)]
kisdnmonitor: [void KAudioPlayStream::start(int, int, int)] samplingRate: 8012
bits: 8 channels: 1
warning: leaving MCOP Dispatcher and still 7 object references alive.
warning: leaving MCOP Dispatcher and still 26 types alive.
warning: leaving MCOP Dispatcher and still 364 data packets alive.
The code is:
KArtsServer *server = new KArtsServer();
KAudioPlayStream *stream = new KAudioPlayStream( server, "message");
QByteArray bufferOut( data.length() + 1 ); // data is a QString
bufferOut.setRawData( data.ascii(), data.length() );
stream->start( 8012, 8, 1 );
stream->write( bufferOut );
More information about the kde-multimedia