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

QAudioInput example corrections

    XMLWordPrintable

Details

    Description

      http://doc.trolltech.com/latest/qaudioinput.html
      The Detailed Description contains an example where QFile outputFile is used in two different ways.
      It is declared as QFile outputFile; // class member.
      Then used in audio->start(outputFile), but QAudioInput::start takes a QIODevice pointer.
      Later, it is used again in outputFile->close();
      Parts of the code treat it as an instance variable, so a correction could be to change to audio->start(&outputFile), and outputFile.close();
      QAudioOutput has a similar error.

      Attachments

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

        Activity

          People

            teemukat Teemu Katajisto (Inactive)
            jflatt Jason Flatt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes