Fix resize to work also in stereo

Before it throwed an out of bounds exception when procession stereo input stream.
Merge pull request #2 from drodsou/resize_fix

Fixed resize function in Sonic.java to work also in stereo