hmm ok..maybe ill ask in other way.FSOUND_Sample_Alloc(FSOUND_UNMANAGED, RECORDLEN, mode, RECORDRATE, 255, 128, 255) allocate memory. if RECORDLEN=10*44100 it will allocate memory for sample with byte rate 44100 and 10s length. But im stoping recording earlier, f. ex. after 4s. i dont want to save all 10s data because last 6s is useless. I want to save to wav file only 4s sample and nothing else. And finally my question is…how to do it?….anyway thx for answer.