0
0

Hi

the integration is working great, this really is fantastic, thanks.

on the FMOD_StudioEventEmitter there are some public variables, one them being startEventOnAwake = true;

great option which is similar to the Play On Awake within Unity.

Is is possible to add a Loop option.

i tried adding public bool loopEvent = true; and I’ve had no luck in creating the variable.. I’m not a C# scripter so am only hacking away here. ..

can anyone help? I want to get the Event to Loop.

Thanks in advance

  • You must to post comments
0
0

Thank you so much for your reply. My issue has been resolved yesterday as I’ve upgraded Unity from to 4.3.3 to 4.3.4.
But indeed, I was confused at some point because of this button and that did not help.
Thanks again 😉

  • You must to post comments
0
0

Hi,
Unfortunately, I cannot loop my sounds either in Unity. It used to work fine though and my sounds loop in FMOD studio. I’m using FMOD studio 1.3.1 and Unity pro 4.3.3
Any hints?

  • You must to post comments
0
0

AmC have you got any luck so far?
I don’t understand what is going on. I work with perforce and just redownloaded the whole project but I keep having the same issue, my loops work fine in Fmod studio but not in Unity.

  • You must to post comments
0
0

After some tests it seems like the issue comes from the banks exported from Fmod Studio.
Everything works fine in Fmod Studio.
In Unity, if I use the regular audio listener and audio source in Unity, I can make my sounds loop but as soon as I try to use the scripts from the UnityFmodIntegration package, the sounds won’t loop.
I tried on a new project in Unity too and the issue is the same.
I made sure the integration package as well as fmod studio are the last as of today Fmod 1.03.03 and Unity integration package 1.03.01.
Is it a bug?

  • You must to post comments
0
0

Hi Guys,

Sorry for the delay in replying. The recommended method for making looping events is to add a loop region in FMOD Studio.

FMOD Studio has the looping audition mode which may be the cause of the confusion here, this button will repeat the the event in the tool:
[img:am9mksgl]http://www.fmod.org/files/loop_audition_button.png[/img:am9mksgl]

If you want to make a one shot event and loop it in Unity you can just query getPlaybackState from update and wait for it to return FMOD_STUDIO_PLAYBACK_IDLE or FMOD_STUDIO_PLAYBACK_STOPPED, and then call start() again.

  • You must to post comments
0
0

Maybe I wasn’t being clear enough … so I used andreas’s code from a recent post as an example.

When I export an Event from FMOD studio .. it is looping fine in Studio, but not in Unity ..

so I need help on this please ..

if I use this code to call the event it plays it through once and then stops.

any suggestions

[code:1gnes4ew]using UnityEngine;
using System.Collections;
using FMOD.Studio;

public class EventEmitter : MonoBehaviour {

FMOD.Studio.EventInstance footsteps;

// Use this for initialization
void Start () {

    footsteps = FMOD_StudioSystem.instance.getEvent("event:/Footsteps");
    footsteps.start();

}

// Update is called once per frame
void Update () {

}

}[/code:1gnes4ew]

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.