Removed unsed variables in sound_handler
Reduced visibility of variable
Remove variable which is never read
Merged some clean-ups suggested by cppcheck