Programmer Event works weirdly when recording

Unity: 2022.2.18
FMODIntegration: 2.0.2.19
FMODStudio: 2.0.2.19
OS: Windows.10

Steps to reproduce:

  1. Using Photon Fusion Voice intergration with FMOD
  2. Use programmer event with async + looping region + persistent on.
  3. Enable Recorder.DebugEcho
  4. Voice will be working for a small period than gone with strange sound
  5. Logs doesnt show that sound was destroyed

Can provide example project if needed

With no event FMOD works perfectly, in discord of photon, people said that programmer sound stopped working at some point.

image
image


image

image

Hi,

Can I get you to provide a more detailed series of reproduction steps, specifically around which Photon classes/components you are using? An example project would also work - you can upload it to your FMOD profile, but note that you’ll have to register a project with us to do so.

@Louis_FMOD

I uploaded impostor project Impostor | Photon Engine
with fmod integration, fmod project.

In this example i even added reverb and voice works for limited time with effect being applied. And at some point voice just dissapears, sometime with strange crackling noise.

To reproduce issue: just enable debug-echo in recorder component during runtime, and you should start hearing yourself.

I also uploaded some screenshots, that should help.

Components:
FMODAudioIn, FMODAudioOut, SpeakerFMOD, FMODRecorderSetup.

image

1 Like

Any updates?

Thanks for uploading the example project - I’ll take a look at it and get back to you soon.

Thanks again for uploading the project.

I’ve done a little digging, and it seem that everything is working as expected on the FMOD side of things. The issue appears to be with how the Photon output code handles overruns and resynchronizing the mic audio datastream with what is passed to the FMOD Sound with Sound::lock and Sound::unlock - at some point, it looks like Photon can’t resync/recover properly from the overrun.

Beyond that, I’m afraid I can’t really be of much help, as this involves 3rd party integration code and as a result falls outside the scope of support. I hope this points you in the right direction.

It was problem with Photon Voice, they already uploaded the fix, thanks!

1 Like