sound: Removing unused function
sound: Unify format
sound: Restructure if statements to reduce lines