Copy data from QIODevice::writeData to another array using memcpy.
Solved
Mobile and Embedded
-
wrote on 30 Mar 2017, 13:00 last edited by
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.
-
wrote on 30 Mar 2017, 13:55 last edited by
I am such an idiot... maxSize is in bytes and I have divided it by 16... now it works.
1/2