Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Help - Change size of QAudioBuffer - Problems with QAudioProbe
Qt 6.11 is out! See what's new in the release blog

Help - Change size of QAudioBuffer - Problems with QAudioProbe

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 844 Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I'm doing a project for audio processing in real time. I used the library QAudioProbe QAudioRecorder and to process the data. Everything works properly.

    The problem is that the data buffer stores only 40ms. I want to extend it to 250ms. I use Fs = 8000Hz, the buffer.frameCount () = 320 ---> 40ms. How I can change the buffer size?

    I think I should change this line of code in question.

    connect (probe, SIGNAL (audioBufferProbed (QAudioBuffer)), this, SLOT (Processed (QAudioBuffer)));
         probe-> setSource (Audiorecorder);
         audioRecorder.record ();

    I consulted the internet information. I can build a buffer size as desired:
    QAudioBuffer (int numFrames, QAudioFormat const & format, qint64 startTime = -1)

    How do I set the buffer to the function of QAudioProbe, audioBufferProbed?

    Thank you very much.

    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