Fix record button.
We can now record audio perfectly. Was struggling with something not being called at the right time, moved it to a callback and now things are fine.