public void _wm_setSpeaker(string position) { if (position.ToLower().Equals("left")) { if (currentSpeaker != SpeakerPosition.left) { positionChanged = true; } currentSpeaker = SpeakerPosition.left; } if (position.ToLower().Equals("center")) { if (currentSpeaker != SpeakerPosition.center) { positionChanged = true; } currentSpeaker = SpeakerPosition.center; } if (position.ToLower().Equals("right")) { if (currentSpeaker != SpeakerPosition.right) { positionChanged = true; } currentSpeaker = SpeakerPosition.right; } }
private void SetLevels(SpeakerPosition speakerPosition) { SpeakerVolume currentVolume = null; switch (speakerPosition) { case SpeakerPosition.FrontLeft: currentVolume = frontLeftVolumeLevels; break; case SpeakerPosition.FrontRight: currentVolume = frontRightVolumeLevels; break; case SpeakerPosition.FrontCenter: currentVolume = frontCenterVolumeLevels; break; case SpeakerPosition.Subwoofer: currentVolume = subwooferVolumeLevels; break; case SpeakerPosition.BackLeft: currentVolume = backLeftVolumeLevels; break; case SpeakerPosition.BackRight: currentVolume = backRightVolumeLevels; break; case SpeakerPosition.SideLeft: currentVolume = sideLeftVolumeLevels; break; case SpeakerPosition.SideRight: currentVolume = sideRightVolumeLevels; break; default: break; } if (currentVolume != null) { float[] volumeLevels = currentVolume.GetVolumeLevels(); CurrentResult = NativeMethods.FMOD_DSP_SetInputLevels(Handle, id, speakerPosition, volumeLevels, volumeLevels.Length); } }
public DialogData(string filename, string speaker, string message, SpeakerPosition position) { this.filename = filename; this.speaker = speaker; this.message = message; this.position = position; }
// Use this for initialization new void Start() { disabledAnswers = new List <int> (); currentParent = bubbleContainerRef; currentSpeaker = SpeakerPosition.right; // NPC #1 positionChanged = true; topBarStatus = BarStatus.hidden; typeHereTransparency = 0.0f; targetTypeHereTransparency = 0.0f; //leftImageRef.enabled = false; //rightImageRef.enabled = false; setMiniature(null, null, 0); setMiniature(null, null, 1); bottomPanelStatus = BarStatus.hidden; topBarRef.GetComponent <RectTransform> ().transform.localPosition = new Vector3(0, HiddenTopY, 0); bottomPanelRef.GetComponent <RectTransform> ().transform.localPosition = new Vector3(0, HiddenBottomY, 0); //nextBubbleY = 20.0f; nextTextY = 180.0f; verticalScroll = 0.0f; targetScroll = 0.0f; maxScroll = 0.0f; blobColor = new Vector4(1.0f, 1.0f, 1.0f, 1.0f); originalPosition = this.transform.position; answerElements = new List <GameObject> (); sayElements = new List <GameObject> (); elements = sayElements; clear(); masterController = GameObject.Find("MasterController").GetComponent <MasterControllerScript> (); ds = masterController.getStorage(); base.Start(); }
private void SetLevels(SpeakerPosition speakerPosition) { SpeakerVolume currentVolume = null; switch (speakerPosition) { case SpeakerPosition.FrontLeft: currentVolume = frontLeftVolumeLevels; break; case SpeakerPosition.FrontRight: currentVolume = frontRightVolumeLevels; break; case SpeakerPosition.FrontCenter: currentVolume = frontCenterVolumeLevels; break; case SpeakerPosition.Subwoofer: currentVolume = subwooferVolumeLevels; break; case SpeakerPosition.BackLeft: currentVolume = backLeftVolumeLevels; break; case SpeakerPosition.BackRight: currentVolume = backRightVolumeLevels; break; case SpeakerPosition.SideLeft: currentVolume = sideLeftVolumeLevels; break; case SpeakerPosition.SideRight: currentVolume = sideRightVolumeLevels; break; default: break; } if (currentVolume != null) { float[] volumeLevels = currentVolume.GetVolumeLevels(); CurrentResult = NativeMethods.FMOD_DSP_SetInputLevels(Handle, id, speakerPosition, volumeLevels, volumeLevels.Length); } }
public Speaker(SpeakerPosition position, SpeakerVolume volume) { this.position = position; this.volume = volume; }
public Speaker(SpeakerPosition position, float volume) { this.position = position; this.volume = new SpeakerVolume(volume); }
internal static extern Result FMOD_Channel_GetSpeakerLevels(IntPtr channelHandle, SpeakerPosition speakerPosition, [MarshalAs(UnmanagedType.LPArray)]float[] levels, int numlevels);
internal static extern Result FMOD_Channel_SetSpeakerLevels(IntPtr channelHandle, SpeakerPosition speakerPosition, float[] levels, int numberOfLevels);
internal static extern Result FMOD_DSP_GetInputLevels(IntPtr dspHandle, int index, SpeakerPosition speakerPosition, float[] levels, int numberOfLevels);
internal static extern Result FMOD_Channel_GetSpeakerLevels(IntPtr channelHandle, SpeakerPosition speakerPosition, [MarshalAs(UnmanagedType.LPArray)] float[] levels, int numlevels);
internal static extern Result FMOD_Channel_SetSpeakerLevels(IntPtr channelHandle, SpeakerPosition speakerPosition, float[] levels, int numberOfLevels);
internal static extern Result FMOD_DSP_GetInputLevels(IntPtr dspHandle, int index, SpeakerPosition speakerPosition, float[] levels, int numberOfLevels);
public Speaker(SpeakerPosition position, SpeakerVolume volume) { this.position = position; this.volume = volume; }
public Speaker(SpeakerPosition position, float volume) { this.position = position; this.volume = new SpeakerVolume(volume); }