Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to set chunk size of .wav file



  • Hey, i did recording from microphone using qt in .wav file.
    i am able to play this file in media playe.but when i added this file in matlab for wavread this is giving a error invalid chunk size …..
    and throgh matlab code i fixed the chunk size of my .wav file .
    the matlab code is given below….
    function wavchunksizefix( test13)
    d = dir(‘test13.wav’);
    fileSize = d.bytes
    fid=fopen(‘test13.wav’,‘r+’,‘l’);
    fseek(fid,4,-1);
    fwrite(fid,fileSize-8,‘uint32’);
    fseek(fid,40,-1);
    fwrite(fid,fileSize-44,‘uint32’);
    fclose(fid);
    but i want to fix this problem throgh qt code.
    plzzz give me some hint.


  • Moderators

    Please do not make the same post multiple times. Continue the discussion at http://qt-project.org/forums/viewthread/39110/


Log in to reply