Added a function to sound manager.