Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Phonon module in Qt4 and Qt5

    General and Desktop
    2
    4
    4055
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WeX.tmpvar last edited by

      Hello! I have application written with Qt4, and it use phonon module. I compile it with Qt5, but it's not work =(( I found problem in part of code, where I create phonon paths:

      @
      ...
      audioOutput = new Phonon::AudioOutput;
      mediaObject = new Phonon::MediaObject;

      dataOutput = new Phonon::AudioDataOutput;
      
      Phonon::createPath(mediaObject, dataOutput);
      Phonon::createPath(mediaObject,audioOutput);
      
      mediaObject->setCurrentSource("/home/wex/temp/test.mp3");
      mediaObject->play();
      

      ...
      @

      When I compile application with Qt5, it's don't play music and don't get audio data. And if I compile it with Qt4 all works good =(

      If I remove this string: "Phonon::createPath(mediaObject, m_aDataOutput);" and compile app, then music plays normal, but I can't get the audio data =(( How I can solve it problem? Thanks =)

      Sorry for my english =)

      1 Reply Last reply Reply Quote 0
      • A
        andre last edited by

        Report a regression in Qt 5 using the bugtracker please.

        1 Reply Last reply Reply Quote 0
        • W
          WeX.tmpvar last edited by

          OK. "QTBUG-26471":https://bugreports.qt-project.org/browse/QTBUG-26471

          Sorry for my english =)

          1 Reply Last reply Reply Quote 0
          • A
            andre last edited by

            Thanks for reporting.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post