fix audiobuffer while loop: correct structure is header(data)-size(4 bytes)-content