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



  • 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.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.