More than a year later... I have the same issue. Qt 4.7.2 under Kubuntu. Of course I had to build it from scratch since they dont offer the QMultimedia component with the standard package.
I can record and listen to music just fine on my system... just not with the Qt Libraries.
I know QAudio* classes are not really supported by Qt at this point, but does anyone have any pointers if they were somehow able to get this working?
I guess that is why they scrapped them until Qt5 comes out, but I can't wait that long.
Little code snippet for the curious:
out << "START-OUTPUT" << endl;
QList<QAudioDeviceInfo> outputList = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput);
foreach(QAudioDeviceInfo outputInfo, outputList)
{
out << outputInfo.deviceName() << endl;
}
out << "END-OUTPUT" << endl;
QTextStream out(stdout);
out << "START-OUTPUT" << endl;
QList<QAudioDeviceInfo> outputList = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput);
foreach(QAudioDeviceInfo outputInfo, outputList)
{
out << outputInfo.deviceName() << endl;
}
out << "END-OUTPUT" << endl;
To copy to clipboard, switch view to plain text mode
Bookmarks