Add controller function to play sound.