[Solved] Does Qt 4.6.x support class QAudioOutput?
Does Qt 4.6.x support class QAudioOutput? if not, which class I shoud use to implement play audio file?
"Qt 4.6 QAudioOutput documentation":http://doc.qt.digia.com/4.6/qaudiooutput.html
thank you, Steno. when I include the class, it can not pass the compiling. Other Qt lass is ok. That is why I post the question.
I've used QAudioOutput in Qt 4.6.3 before; it's supported.
What error did you get?
Also, what platform are you on? I know that Ubuntu modified their Qt packages and broke Qt Multimedia some time ago.
The problem (compiling errror: can not find the file, when using QAudioOutput) has been soleved. I have to add a line manullay in project file:
QT += multimedia widgets
My platform is also Qt 4.6.3
You're welcome :)
You don't need "widgets" by the way -- that only exists in Qt 5. Use "gui" in Qt 4.