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

Audio CD playing issue usinf Phonon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • Some future release
    • 4.7.0
    • (Inactive) Phonon
    • None
    • Ubuntu-9.04

    Description

      Starting from the demos/QMediaPlayer from Qt-4.7.0-beta2, method "void MediaPlayer::openFile()", I read the tracks from an audio CD, add them to queue and start playback.
      The problem here is that when I try to go to next track, it won't go. Also, after playing something from an audio CD, it won't play anything else: audio or video (no errors displayed).
      If I compile it with Qt-4.6, everything goes well.

      Here is my audioCD playing:

      void MediaPlayer::playAudioCD()
      {
      const bool hasPausedForDialog = playPauseForDialog();
      QStringList fileNames;
      int num;
      char* buff = (char*)malloc(10);

      this->playingType = PLAY_AUDIOCD;

      num = get_tracks_num("/dev/sr0");
      if(!num)
      return;

      for(int i=0;i<num;i++)

      { sprintf(buff, "cdda://%d", i+1); fileNames.append(buff); }

      if (hasPausedForDialog)
      m_MediaObject.play();

      m_MediaObject.clearQueue();
      if (fileNames.size() > 0)

      { QString fileName = fileNames[0]; setFile(fileName); for (int i=1; i<fileNames.size(); i++) m_MediaObject.enqueue(Phonon::MediaSource(fileNames[i])); }

      forwardButton->setEnabled(m_MediaObject.queue().size() > 0);

      free(buff);
      }

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            lgalatanu Leonard Galatanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes