<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hallo everbody!<br>
<br>
I'm goind to write another audioplayer in Qt. Here is a snipplet of
code:<br>
<br>
<br>
<br>
<font color="#3333ff"> </font><font color="#33ccff"><font
color="#3333ff"> Phonon::MediaObject *mediaObject = new
Phonon::MediaObject(this);<br>
Phonon::AudioDataOutput * audiodaten = new
Phonon::AudioDataOutput(mediaObject);<br>
mediaObject->setCurrentSource(Phonon::MediaSource("OnlyYou.wav"));<br>
Phonon::AudioOutput *audioOutput =<br>
new Phonon::AudioOutput(Phonon::MusicCategory, this);<br>
<br>
Phonon::Path path = Phonon::createPath(mediaObject, audioOutput);<br>
<br>
connect(audiodaten,<br>
SIGNAL(dataReady(const
QMap<Phonon::AudioDataOutput::Channel, QVector<qint16>
>&)),<br>
this,<br>
SLOT(receiveData(const
QMap<Phonon::AudioDataOutput::Channel, QVector<qint16>
>&)));<br>
<br>
mediaObject->play();<br>
<br>
.....<br>
<br>
void Player1::receiveData( const
QMap<Phonon::AudioDataOutput::Channel,QVector<qint16> >
&data )<br>
{<br>
qDebug() << data.size();<br>
}<br>
<br>
<font color="#000000">But the slot receiveData() is never called. Can
You help me to fix the problem?</font><br>
</font></font><br>
Many thanks!<br>
<br>
E. Körner<br>
<br>
</body>
</html>