he is not clarified well here... he has already converted bytes into number of samples in line 195.
In fact you only need to change in line 243 2*2 to 2*frame.channels and correct the comments since mp3 file do not always have two channles.