当前位置: 首页>>代码示例>>C#>>正文


C# EventInstance.getParameter方法代码示例

本文整理汇总了C#中FMOD.Studio.EventInstance.getParameter方法的典型用法代码示例。如果您正苦于以下问题:C# EventInstance.getParameter方法的具体用法?C# EventInstance.getParameter怎么用?C# EventInstance.getParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FMOD.Studio.EventInstance的用法示例。


在下文中一共展示了EventInstance.getParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Start

 // Use this for initialization
 void Start()
 {
     //connect FMOD events and instances to variables
     example = FMOD_StudioSystem.instance.GetEvent ("event:/Pickup");
     example.getParameter ("Type", out examplePara);
     example.getParameter ("Volume", out examplePara2);
 }
开发者ID:alextalvan,项目名称:Ships2,代码行数:8,代码来源:FMODTest.cs

示例2: Start

 // Use this for initialization
 void Start()
 {
     Menu = FMOD_StudioSystem.instance.GetEvent ("event:/Menu");
     Menu.start ();
     Menu.getParameter ("OptionsMuch", out OptionsMuch);
     Menu.getParameter ("StartGame", out StartGame);
     Time.timeScale = 1.0f;
 }
开发者ID:Fishey,项目名称:Project-Indie-Game,代码行数:9,代码来源:MenuScript.cs

示例3: Start

	void Start() {
		musicEV = FMODUnity.RuntimeManager.CreateInstance(music);
		musicEV.getParameter("Happiness", out happiness);
		musicEV.getParameter("win", out win);
		musicEV.getParameter("lose", out lose);
		musicEV.start();
		Progress();
	}
开发者ID:decentninja,项目名称:Bird-Mating-Dancy,代码行数:8,代码来源:PlayerController.cs

示例4: Start

	// Use this for initialization
	void Start () {
		ambience = FMOD_StudioSystem.instance.GetEvent("event:/Forest");
		ambience.start(); 
		ambience.getParameter("Birds", out ambienceBirds);
		ambience.getParameter("Wind", out ambienceWind);
		ambience.getParameter("Rain", out ambienceRain);

		ambienceBirds.setValue(0f);
		ambienceWind.setValue(0f);
		ambienceRain.setValue(0f);
	}
开发者ID:Francois-Suro,项目名称:No-Man-s-Ground,代码行数:12,代码来源:SoundController.cs

示例5: Start

 void Start()
 {
     ambience = FMOD_StudioSystem.instance.GetEvent("event:/sfx/environment/ambience");
     ambience.getParameter("windSpeed", out windSpeedParam);
     ambience.getParameter("windIntensity", out windIntensityParam);
     windSpeedParam.setValue(0);
     windIntensityParam.setValue(0);
     ambience.start();
     StartCoroutine(VaryWindParam(windSpeedParam));
     StartCoroutine(VaryWindParam(windIntensityParam));
 }
开发者ID:mightypants,项目名称:apackofalpacas,代码行数:11,代码来源:AudioManager.cs

示例6: Start

 public new void Start()
 {
     base.Start();
     FMOD.Studio.EventDescription eventDesc;
     FMODUnity.RuntimeManager.StudioSystem.getEvent(emmiter.Event, out eventDesc);
     FMOD.Studio.EventInstance[] tabEv;
     eventDesc.getInstanceList(out tabEv);
     evInst = tabEv[0];
     evInst.getParameter("pad", out padParam);
     evInst.getParameter("sweep", out sweepParam);
     evInst.getParameter("bass", out bassParam);
     evInst.getParameter("perc", out percParam);
     etab[0] = 0.5f; etab[1] = 0.5f; etab[2] = 0.5f; etab[3] = 0.5f;
     temptab[0] = 0.0f; temptab[1] = 0.0f; temptab[2] = 0.0f; temptab[3] = 0.0f;
 }
开发者ID:Ooya,项目名称:Robot-Sapiens,代码行数:15,代码来源:RobotSapiensMusicManager.cs

示例7: Start

    // Use this for initialization
    void Start()
    {
        _rigidbody = GetComponent<Rigidbody>();

        _musique = FMOD_StudioSystem.instance.GetEvent ("event:/MusicFinal");
        _musique.getParameter ("Change", out _Change);
        _musique.getParameter ("Air", out _IAirZic);
        _musique.start();

        _event = FMOD_StudioSystem.instance.GetEvent (Asset);
        _event.getParameter ("InAir", out _InAir);
        _event.getParameter ("Vitesse", out _Vitesse);
        _event.getParameter ("Braquage", out _Braquage);
        _event.start();
    }
开发者ID:ProjectMomenteam,项目名称:Momenteam,代码行数:16,代码来源:CharacterSound.cs

示例8: Start

 // Use this for initialization
 void Start ()
 {
     musicSound = FMODUnity.RuntimeManager.CreateInstance(MusicEvent);
     musicSound.getParameter("Light-Dark", out musicParam);
     //musicSound.setParameterValue("Light-Dark", startAmbient);
     musicSound.start();
 }
开发者ID:delVhar,项目名称:ToilTrouble_GGJ16,代码行数:8,代码来源:SoundManager.cs

示例9: Start

    // --------------------------
    // Use this for initialization
    void Start()
    {
        //FMOD

        hoverSound = FMOD_StudioSystem.instance.GetEvent("event:/Hoverboard/Ny motor");

        hoverSound.start();
        soundPlaying = true;
        if (hoverSound == null)
            Debug.Log("Laddar inte in eventet!!!");

        hoverSound.getParameter("Speed", out speedPitch);

        if (speedPitch == null)
            Debug.Log("Hittar inte variabeln!!!");

        windSound = FMOD_StudioSystem.instance.GetEvent("event:/Vind/Vind");

        windSound.start();

        if (windSound == null)
            Debug.Log("Laddar inte in wind-eventet!!!");

        windSound.getParameter("Speed", out speedVolume);

        if (speedVolume == null)
            Debug.Log("Hittar inte wind-variabeln!!!");

        impactSound = FMOD_StudioSystem.instance.GetEvent("event:/Impact/Impact1");

        if (impactSound == null)
            Debug.Log("Laddar inte in impact-eventet!!!");

        //-----------------------------
    }
开发者ID:Raful,项目名称:Hoverboard,代码行数:37,代码来源:FMOD_EngineEmitter.cs

示例10: OnTriggerEnter

 void OnTriggerEnter()
 {
     reverb = FMODUnity.RuntimeManager.CreateInstance("event:/snapshot/" + gameObject.name);
     reverb.start();
     reverb.getParameter("reverbDistance", out reverbDistance);
     reverbDistance.setValue(0f);
     print( gameObject.name + " triggered" );
 }
开发者ID:Frampt,项目名称:ReverbZoneProject,代码行数:8,代码来源:ReverbZoneParameter.cs

示例11: Start

    protected void Start()
    {
        
        raidersEv = FMODUnity.RuntimeManager.CreateInstance(raiders);
        raidersEv.getParameter("Attack", out raidersAttackParam);

        StartCoroutine(PregameMockup());
    }
开发者ID:CptDefault,项目名称:ggj2016,代码行数:8,代码来源:GuildCreator.cs

示例12: Start

	// Use this for initialization
	void Start () {

		musicEv = FMODUnity.RuntimeManager.CreateInstance (Catalogue.getMusic());
		musicEv.getParameter (enemyCount, out enemyCountPa);
		musicEv.getParameter (speed, out speedPa);
		musicEv.getParameter (state, out statePa);

		previousFrameTime = Time.time;
		lastReportedPlayPosition = 0;
		musicEv.start ();
		enemyCountChange (3);
		statePa.setValue (1);
		speedPa.setValue (3);
		beatExecutor = GetComponent<BeatExecutor> ();
		cb = new FMOD.Studio.EVENT_CALLBACK(onBeatWrapper);
		musicEv.setCallback (cb, FMOD.Studio.EVENT_CALLBACK_TYPE.TIMELINE_BEAT | FMOD.Studio.EVENT_CALLBACK_TYPE.TIMELINE_MARKER);

	}
开发者ID:frugs,项目名称:RitualRhythm,代码行数:19,代码来源:Sound.cs

示例13: Start

	void Start () {
		sfxController = gameObject.GetComponent<SFXController>();
		
		hum = FMOD_StudioSystem.instance.GetEvent("event:/alpaca_hum"); 
		hum.getParameter("occlusion", out occlusion);
		hum.getParameter("distanceFromSmallRm", out distanceFromSmallRm);
		hum.getParameter("distanceFromLargeRm", out distanceFromLargeRm);
		
		distanceFromLargeRm.setValue(distLargeRm);
		distanceFromSmallRm.setValue(distSmallRm);

		// set up snap shot for displaced sound
		var system = FMOD_StudioSystem.instance.System;
		FMOD.Studio.EventDescription description;
		system.getEvent("snapshot:/displacedSound", out description);
		description.createInstance(out displacedSound);

	}
开发者ID:jinyangnet,项目名称:spacial_audio,代码行数:18,代码来源:AlpacaMovement.cs

示例14: Start

    // Use this for initialization
    void Start()
    {
        animator = GetComponent<Animator>();

        //Initialize FMOD events with parameters
        stepsEv = FMODUnity.RuntimeManager.CreateInstance(playerSteps);
        stepsEv.getParameter("moving", out stepsParam);
        stepsEv.start();
        stepsParam.setValue(0);
    }
开发者ID:dannybee722,项目名称:4thDimension,代码行数:11,代码来源:Teen_Controller_Script.cs

示例15: Start

	void Start()
	{
//		engine = FMOD_StudioSystem.instance.getEvent("/Background/Orchestral Music");
//		engine.start();
//		engine.getParameter("RPM", out engineRPM);
		fmodSound = FMOD_StudioSystem.instance.GetEvent (gameObject.GetComponent<FMOD_StudioEventEmitter>().path);
		fmodSound.getParameter ("State", out fmodState);

		fmodState.setValue (state);
	}
开发者ID:MiloBuwalda,项目名称:wizard,代码行数:10,代码来源:AudioState.cs


注:本文中的FMOD.Studio.EventInstance.getParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。