refactored sound stuff a bit.