Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity3D is recognized by Jack, but no sound is coming in. #19

Closed
marijncin opened this issue Oct 13, 2020 · 3 comments
Closed

Unity3D is recognized by Jack, but no sound is coming in. #19

marijncin opened this issue Oct 13, 2020 · 3 comments

Comments

@marijncin
Copy link

marijncin commented Oct 13, 2020

Platform: Windows 10

I am trying to use the "send effect" example to send audio from Unity3D to MaxMSP. I can not get it to work. The moment I play my Unity3D game, the Jack Console fills up with errors: "JackEngine::XRun: client = Spatial Engine VR - WIN was not finished, state = Triggered". A complete stack overflow and all audio related apps crash.

I find this a strange behaviour because my buffersize is set to 1024. Other apps tranfer audio just fine. I suspect another kind of problem, maybe a mismatch of some kind? To the best of my knowledge, all the DSP settings are in sync.

These steps are taken:

  • installed and registered jack 1.9.11, jack appears to be running normal and routing audio between programs is working fine.
  • Jack Portaudio is targeting ASIO :: ASIO4ALL.
  • I loaded the Example scene "send effect". This example seems to be the only one that does not crash instantly.
  • Followed these steps to avoid a crash on startup: Dependency to libjack64.dll crashes Unity 2019 #15
  • In Unity3D, I set the speaker default layout to mono. 48000 khz, and "high performance mode (1024 frames)"

In jack audio: I set my preferences to match 1024, 48000 khz.

My best guess at the problem:
I am suspecting that the settings I tweak in the JackControl interface are not inplemented. When I navigate to: messages > status. I can see that the server is always running on 512 frames despite the fact that I changed it to 1024 and restarted the server.

Also: In MaxMSP, I can not set my vector size beyond 512 frames.

What could be the cause of this problem?

Kind regards, Marijn

@marijncin marijncin changed the title Unity3D is recognized, but no sound is put trough. Unity3D is recognized by Jack, but no sound is coming in. Oct 13, 2020
@rodrigodzf
Copy link
Owner

I just checked in Windows, and it is working with the setup you describe (although using puredata instead of max, since I don't have max installed). My settings are these in jack:

jacksettings

You could try jack and max/msp independently from this plugin and see if that works

@rodrigodzf
Copy link
Owner

rodrigodzf commented Nov 9, 2020 via email

@marijncin
Copy link
Author

@rodrigodzf indeed. I did get the samplerate to 1024 by defining it in port audio as a backend target property. This get's the setup to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants