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

Audio Output Example, different soundoutput when sampleType is set to QAudioFormat::UnSignedInt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.9.1
    • Multimedia
    • None
    • I'm working on Windows 10, the used Kit is Desktop Qt 5.9.1 MinGW 32 bit.

    Description

      Hello

      This is pretty new for me, so I'm not shure if I'm right here, sorry if not.

      Played with the Audio Output Example. When I changed the sampleType for the audioformat to QAudioFormat::UnSignedInt, the sound I got was different. The only change I made was in audiooutput.cpp. I replaced
      m_format.setSampleType(QAudioFormat::SignedInt);
      with
      m_format.setSampleType(QAudioFormat::UnSignedInt);
      The Generator::generateData-function has code to handle both possibility, so I thought, the sound I will get would be the same, which isn't the case.

      As mentioned above, I'm not shure if this really a bug or the right place for this issue, but I'm pretty shure it doesn't do what it's supposed to do.

      Kind regards,

      urbaer

       

      Attachments

        For Gerrit Dashboard: QTBUG-62621
        # Subject Branch Project Status CR V

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            urbaer Urlaubs Baer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes