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. Copy data from QIODevice::writeData to another array using memcpy.

Copy data from QIODevice::writeData to another array using memcpy.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qaudioinputqiodevicememory
2 Posts 1 Posters 947 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.
  • F Offline
    F Offline
    fpartl
    wrote on 30 Mar 2017, 13:00 last edited by
    #1

    Hello,
    I sample audio using QAudioInput to my MFCCPerformer witch inherited from QIODevice. I have overided the writeData method. There I am copying the data to merge array witch is used for 50% audio frame overlap. I think my modulo logic is ok but program everytime fails on segmentation fault... can be writeData called during the previous writeData copying data - how I can make them wait?

    Here is my code on github.

    Thanks for help.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fpartl
      wrote on 30 Mar 2017, 13:55 last edited by
      #2

      I am such an idiot... maxSize is in bytes and I have divided it by 16... now it works.

      1 Reply Last reply
      0

      1/2

      30 Mar 2017, 13:00

      • Login

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