audio recorder move to thread
refactoring