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. Record audio signal as array
Qt 6.11 is out! See what's new in the release blog

Record audio signal as array

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 886 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.
  • G Offline
    G Offline
    ganaa
    wrote on last edited by
    #1

    hi i have a mic that gives me signal sample by sample(single integers come as stream)

    so i need to save them in array so then after some seconds it will become one wave signal ofcourse .

    So i will work on that frame of signal but i have problem that look at the code please:

    static int ps_array2[]={};

    (if i declare as int without static it just gives no stream.)

    ps_array2[seq2]=(sch2.toInt());

    (seq2 is timer so i will cut the array signal by rising edge and falling edge. rising edge and falling edges are times.)

                         for(int kaka1=ps_entry_time[1];kaka1<=ps_exit_time[1];kaka1++){
                         qDebug() << "Message from: " << ps_array2[kaka1];
    
                         } 
    

    (here for shows me cropped result as message that really works. )

    So the problem is when i build it sometimes works but sometimes gives nothing or crush and stopped working even i didnt change anything. So i should do force close.

    I am new at QT but i should work. may be something is different in QT structure.

    Please give me some advice.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      ganaa
      wrote on last edited by
      #2

      cannot record more than 1300 length of array signal?

      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