Split the function that split the wav file in two.