Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20090

Phonon::AudioDataOutput makes the sound running with glitches

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.2
    • (Inactive) Phonon
    • None
    • Ubuntu 11.04

    Description

      When I use Phonon::AudioDataOutput to get the raw of the audio the audio output doesn't works as expected, the sound outs with glitches like the buffer has latency.

      // Code extracted from http://gitorious.org/simpleplayer/simpleplayer/archive-tarball/master
      // sample code that occurs.
      int main(int argc, char * argv[]) {
          QApplication app(argc, argv);
          app.setApplicationName("simpleplayer");
      
          Phonon::AudioOutput output(Phonon::MusicCategory, &app);
          Phonon::MediaObject media(&app);
          media.connect(&media, SIGNAL(finished()), &app, SLOT(quit()));
      
          Phonon::AudioDataOutput dataout(&app);
          Phonon::createPath(&media, &dataout);
          Phonon::createPath(&dataout, &output);
      
          media.setCurrentSource(app.arguments().at(1));
          media.play();
      
          return app.exec();
      }
      

      ***********************************************

      // sample code that no occurs.
      int main(int argc, char * argv[]) {
          QApplication app(argc, argv);
          app.setApplicationName("simpleplayer");
      
          Phonon::AudioOutput output(Phonon::MusicCategory, &app);
          Phonon::MediaObject media(&app);
          media.connect(&media, SIGNAL(finished()), &app, SLOT(quit()));
      
          // Phonon::AudioDataOutput dataout(&app);
          // Phonon::createPath(&media, &dataout);
          // Phonon::createPath(&dataout, &output);
          Phonon::createPath(&media, &output);
      
          media.setCurrentSource(app.arguments().at(1));
          media.play();
      
          return app.exec();
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            israelins85 Israel Lins Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes