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. How threading is implemented in Spectrum Analyser
Forum Updated to NodeBB v4.3 + New Features

How threading is implemented in Spectrum Analyser

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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.
  • S Offline
    S Offline
    shoyeb
    wrote on last edited by
    #1

    In spectrum analyser example provided by qt, it is being said that the calculatespectrum() which is being called from calculate() in "spectrum analyser" class is done on the separate thread, but what i have observed is that it is running on main thread only.

    current Implimentation is:
    there are two signals in engine
    1.readyread
    2.notify

    when readyread is emitted date from audio stream is copied into buffer.

    when notify signal is emitted the data is sent for further processing.

    Problem:

    Because notify signal is generated randomly not all data is being processed atleast 1000 samples are being missed by the time
    notify is emitted

    Desired implimentation:

    To process the whole data without missing any, so.. that needs an alternate signal other than 'notify',

    secondly i want calculate to run on child thread so that i can do simultaneous processing of data,i.e in runtime data is being fetched and processed.

    Thanks in advance.
    it would be really greatfull if some one could pull me out of this...

    There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

    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