Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QAudioRecorder [Sailfish OS]
Forum Update on Monday, May 27th 2025

QAudioRecorder [Sailfish OS]

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 0 Posters 815 Views
  • 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hello,

    I'm new with C++ and I'm still learning it. I was thinking what would be a good exercise which isn't too hard but provides much information for me -- and I ended up with using QAudioRecorder.

    I'm able to record sound with it but for some reason it doesn't make a difference at all which QAudioEncoderSettings I use - the sound quality is still the same. And that's not the only problem ...

    The recorded .wav file which can be played with, for example, VLC player but not with Windows Media Player. Also the websites which can play audio files doesn't recognize this as an audio. Why? I also checked the audio details of it and it says the bit rate is 0 and it has no length at all.

    And one final question is that on qt-project.org the "QAudioRecorder example project" [http://qt-project.org/doc/qt-5.1/qtmultimedia/audiorecorder.html] uses the following function to list supported sample rates but for some reason I can not get it working - no matter what audio codecs I'll try -- though I'm not even sure does it matter, but still ...

    Here are the links for the source:

    untitled.cpp: https://www.dropbox.com/s/rljimkyokjdzn93/untitled.cpp
    record.h: https://www.dropbox.com/s/42snsqp3c2hfkjn/record.h
    record.cpp: https://www.dropbox.com/s/0qhqlzonskjbd8b/record.cpp

    And I'm not looking for an answer that I can just copy. But I assume just a short description wouldn't be enough because I'm completely new with C++.

    Much appreciated, folks! :)

    Sincerely,
    Heikki Kullas

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved