Read audio file and direct write to new file but the sound not same as original


My process

1.1 read wav file from file chooser

1.2 create fileoutputstream and new block to keep data readed from reader->read()

1.3 write it to new file (read 1024 sample per block and write it to new file every loop )

1.4 after write finished new sound have more speed than original and have some noise and sound frequency maybe half of original file

sorry for my bad english and thank you for answer