Fixed sound recording bugs

Fixes #130