Apply bug-fix from Silas Brown to write data out correctly. That's where the glitches were coming from!
Apply bug-fix from Silas Brown to write data out correctly. That's
where the glitches were coming from!

Also reformat code in that area slightly for clarity. The actual fix
is to change "buf" to "bug + written" in the call to sox_adpcm_write.

Motiejus/sox,CaptainHayashi/sox,Motiejus/sox,pcqpcq/sox,davel/sox,mhartzel/sox_personal_fork,MageSlayer/sox,mhartzel/sox_personal_fork,CaptainHayashi/sox,MageSlayer/sox,pcqpcq/sox,Distrotech/sox,jacksonh/sox,CaptainHayashi/sox,MageSlayer/sox,pcqpcq/sox,Distrotech/sox,jacksonh/sox,Motiejus/sox,MageSlayer/sox,mhartzel/sox_personal_fork,cbagwell/sox,davel/sox,Motiejus/sox,cbagwell/sox,cbagwell/sox,cbagwell/sox,pcqpcq/sox,jacksonh/sox,Distrotech/sox,Distrotech/sox,davel/sox,CaptainHayashi/sox,uklauer/sox,mhartzel/sox_personal_fork,uklauer/sox,uklauer/sox,jacksonh/sox,uklauer/sox,MageSlayer/sox,davel/sox