Made variables static in emitsoundany.inc