Frees the resources associated with the event sound player cache.
This function decrements the cache reference count and frees the cached sound players when the count reaches zero. All event sound players not in use are released immediately and removed from the cache. Any cached players in use when the cache is freed are marked and freed once they are returned to the cache. This function does not block waiting for in-use players to be freed.