protected static void SetPitch(EntityManager mgr, Entity e, float pitch) { if (mgr.HasComponent <AudioSourceID>(e)) { AudioSourceID audioSourceID = mgr.GetComponentData <AudioSourceID>(e); if (audioSourceID.sourceID > 0) { AudioHTMLNativeCalls.SetPitch((int)audioSourceID.sourceID, pitch); } } }