Difference between revisions of "Talk:Development/Tutorials/Phonon/Introduction"

Jump to: navigation, search
(It goes easier)
 
Line 1: Line 1:
 
This does not play anything, does not give an error message, and the article does not give a hint how to track this problem down. --[[User:Tstaerk|Tstaerk]] 16:26, 2 May 2009 (UTC)
 
This does not play anything, does not give an error message, and the article does not give a hint how to track this problem down. --[[User:Tstaerk|Tstaerk]] 16:26, 2 May 2009 (UTC)
 
: Now it works but I cannot use the mixer --[[User:Tstaerk|Tstaerk]] 10:08, 7 June 2009 (UTC)
 
: Now it works but I cannot use the mixer --[[User:Tstaerk|Tstaerk]] 10:08, 7 June 2009 (UTC)
 +
 +
----
 +
 +
It goes easier:
 +
int main(int argc, char** argv)
 +
{
 +
    QApplication app(argc, argv);
 +
    QApplication::setApplicationName("Phonon Test");
 +
    QWidget widget;
 +
    Phonon::MediaObject* source = new Phonon::MediaObject(&widget);
 +
    Phonon::AudioOutput* sink = new Phonon::AudioOutput(Phonon::MusicCategory, &widget);
 +
    createPath(source, sink);
 +
    source->setCurrentSource(QString("sample.mp3"));
 +
    source->play();
 +
    widget.show();
 +
    return app.exec();
 +
}

Latest revision as of 14:40, 4 October 2010

This does not play anything, does not give an error message, and the article does not give a hint how to track this problem down. --Tstaerk 16:26, 2 May 2009 (UTC)

Now it works but I cannot use the mixer --Tstaerk 10:08, 7 June 2009 (UTC)

It goes easier:

int main(int argc, char** argv)
{
   QApplication app(argc, argv);
   QApplication::setApplicationName("Phonon Test");
   QWidget widget;
   Phonon::MediaObject* source = new Phonon::MediaObject(&widget);
   Phonon::AudioOutput* sink = new Phonon::AudioOutput(Phonon::MusicCategory, &widget);
   createPath(source, sink);
   source->setCurrentSource(QString("sample.mp3"));
   source->play();
   widget.show();
   return app.exec();
}

This page was last modified on 4 October 2010, at 14:40. This page has been accessed 2,389 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal