本文整理汇总了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);
}
示例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;
}
示例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();
}
示例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);
}
示例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));
}
示例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;
}
示例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();
}
示例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();
}
示例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!!!");
//-----------------------------
}
示例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" );
}
示例11: Start
protected void Start()
{
raidersEv = FMODUnity.RuntimeManager.CreateInstance(raiders);
raidersEv.getParameter("Attack", out raidersAttackParam);
StartCoroutine(PregameMockup());
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}