2 ends of the spectrum...
In my shop, my el-cheapy chinese boombox stereo sits on a shelf mext to my main workbench along a wall. It gets hit with the air gun when I remember to do it, or not. I's been there 3-4 years now and works without a problem. I am thinking of replacing it with an old Kenwood component receiver / CD player / Tape deck I was given... and running speakers... just too busy to do it now. It will go where the old one came from.
What we used to do at one of the dustiest jobsites on the planet (the Burning Man event on the Black Rock alkali playa in Nevada) was build a sealed plexiglas box, it ran positive pressure through a HEPA filter... the control surfaces for the gear (both audio and video peojectors) were sealed to a cutout in the box. The power was supplied to the inside of the box with a switch on the outside - you flip the switch, the power comes on to the fan and to the receiver's plug as well, so you always had clean cooling air. The box was positive pressure, so the air not only flowed out of the exhaust vent (used an accordian filter for that) but the controls as well.
When we first built it our airflow wasn't enough - anything in the box overheated. We ended up using a rack of high volume computer fans on one side (drawing through the HEPA filter) as just one or 2 wasn't enough (IIRC the one we built for our audio gear had 6, and the projector one had 10).
OK, it was, for the most part, and for what we do here, overkill, but out there, unprotected electronics in use have a lifespan measured not in years, but hours - the heat is opressive, and the dust is corrosive, alkali, and conductive.