What kind of foam is it? There are many types of foam, and some are very flammable and dangerous to use in a studio where other ones are completely fine but are used for packaging and don't absorb much sound, and other ones are actually used for acoustical purposes which work well for deadening the mids and highs but don't provide any broadband absorption down to lower frequencies like fiberglass and mineral wool bass traps do.