rodrigodzf / Jack-Audio-For-Unity

Jack Audio support for Unity3d
MIT License
30 stars 7 forks source link

Jack Send shares "port number" value across channels #28

Open HadiAyoub opened 3 months ago

HadiAyoub commented 3 months ago

When I add Jack Send to multiple mixer groups, if I change the value of port number in one group, it also updates in another group. Defeating the purpose of Jacksend.

HadiAyoub commented 3 months ago

A workaround I attempted was to create gameobjects on the fly, and attach jacksend to them whenever I needed to output a sound to a specific channel.

As soon as there were more than 2-3 game objects created though, audio came to a complete halt.

HadiAyoub commented 3 months ago

@Schroedingers-Cat any ideas?

Schroedingers-Cat commented 3 months ago

Hm, I never experienced something like this, but I used this last in 2020.

Does this only happen when you change the port number via GUI? You could try setting the intended port numbers in the mixer's asset file and see if that is picked up correctly by Unity.

HadiAyoub commented 3 months ago

@Schroedingers-Cat - Genius! Thank you so freaking much! I think that worked - it at least appears to be a path forward :)

Schroedingers-Cat commented 3 months ago

Happy to hear that works. That sounds like the problem lies in the C# GUI which fails to bind to a specific instance but rather all instances. Really weird. But ATM, I got no time to dig into this.