main: start recorder thread; main: start player (in main); main: wait for player to finish; main: signal recorder thread to stop.