QList<AudioOutputDevice> ss = Phonon::BackendCapabilities::availableAudioOutputDevices();
error << ERRdebug << "Got " << ss.size() << " devices" << endl;
for (int i=0; i<ss.size(); i++)
{
error << ERRdebug << i << ": " << ss.at(i).name().toStdString() << endl;
}
m_audioOutput = new AudioOutput(Phonon::MusicCategory, this);
m_mediaObject = new MediaObject(this);
m_mediaObject->setTickInterval(1000);
connect(m_mediaObject, SIGNAL(tick(qint64)), this, SLOT(tick(qint64)));
connect(m_mediaObject, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
this, SLOT(stateChanged(Phonon::State, Phonon::State)));
connect(m_mediaObject, SIGNAL(currentSourceChanged(const Phonon::MediaSource &)),
this, SLOT(sourceChanged(const Phonon::MediaSource &)));
Phonon::createPath(m_mediaObject, m_audioOutput);
QList<AudioOutputDevice> ss = Phonon::BackendCapabilities::availableAudioOutputDevices();
error << ERRdebug << "Got " << ss.size() << " devices" << endl;
for (int i=0; i<ss.size(); i++)
{
error << ERRdebug << i << ": " << ss.at(i).name().toStdString() << endl;
}
m_audioOutput = new AudioOutput(Phonon::MusicCategory, this);
m_mediaObject = new MediaObject(this);
m_mediaObject->setTickInterval(1000);
connect(m_mediaObject, SIGNAL(tick(qint64)), this, SLOT(tick(qint64)));
connect(m_mediaObject, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
this, SLOT(stateChanged(Phonon::State, Phonon::State)));
connect(m_mediaObject, SIGNAL(currentSourceChanged(const Phonon::MediaSource &)),
this, SLOT(sourceChanged(const Phonon::MediaSource &)));
Phonon::createPath(m_mediaObject, m_audioOutput);
To copy to clipboard, switch view to plain text mode
On my compiler machine, the log prints got 1 device (0: default), but on target I get 0 devices. Note that the audio card works fine when using other applications. Help appreciated.
Bookmarks