Sound player refactoring