Adopt statemachine class to manage sound right