Implemented pulse audio state detector