private void OnEnable() { var emitterSettings = new AkEmitterSettings(); emitterSettings.reflectAuxBusID = reflectAuxBus.Id; emitterSettings.reflectionMaxPathLength = reflectionMaxPathLength; emitterSettings.reflectionsAuxBusGain = reflectionsAuxBusGain; emitterSettings.reflectionsOrder = reflectionsOrder; emitterSettings.reflectorFilterMask = unchecked ((uint)-1); emitterSettings.roomReverbAuxBusGain = roomReverbAuxBusGain; emitterSettings.useImageSources = 0; emitterSettings.diffractionMaxEdges = diffractionMaxEdges; emitterSettings.diffractionMaxPaths = diffractionMaxPaths; emitterSettings.diffractionMaxPathLength = diffractionMaxPathLength; if (AkSoundEngine.RegisterEmitter(gameObject, emitterSettings) == AKRESULT.AK_Success) { SetGameObjectInRoom(); var akGameObj = GetComponent <AkGameObj>(); if (akGameObj) { akGameObj.SetPosition(true); } } }
private void OnEnable() { var emitterSettings = new AkEmitterSettings(); emitterSettings.reflectAuxBusID = (uint)reflectAuxBus.ID; emitterSettings.reflectionMaxPathLength = reflectionMaxPathLength; emitterSettings.reflectionsAuxBusGain = reflectionsAuxBusGain; emitterSettings.reflectionsOrder = reflectionsOrder; emitterSettings.reflectorFilterMask = unchecked ((uint)-1); emitterSettings.roomReverbAuxBusGain = roomReverbAuxBusGain; emitterSettings.useImageSources = 0; if (AkSoundEngine.RegisterEmitter(gameObject, emitterSettings) == AKRESULT.AK_Success) { SetGameObjectInRoom(); } }
internal static global::System.IntPtr getCPtr(AkEmitterSettings obj) { return((obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr); }