Supressors work only on sub-sonic ammunition,the supressor slows the super-sonic gasses exiting the barrel to sub-sonic speeds thereby muffling the noise.
Most supressors are a tube in a tube,the inner tube is perforated with many small holes,this allows the gasses to exit out the side of the tube and slowing them down in the process.