Bugfix: I've been closing the line after writing one buffer, so only first bit of sound was played back to the user.