[ a cat that liked to use the dirty laundry basket as her litter box. The smell always washed out of clothes just fine. However, I could never get the smell out of the rug if she happened to use a pile of clothes that was on the floor instead of the basket. ]
I've found that if the animal soils a natural fiber like cotton, I can get the smell and the stain out. But if the soiled item has any rubber or spandex or such in it, then the smell seems to become embedded in the thing, and no amount of washing or deodorizing removes all the smell.
.