Energy transformation in creating dark solitons and sound waves