Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[RELEASED] JACK4U - Route audio from a DAW to Unity with JACK Audio

Discussion in 'Assets and Asset Store' started by _monoflow, Jun 24, 2014.

?

Are you interested in JACK4U if it had OSX support?

  1. Yes

    11 vote(s)
    100.0%
  2. No

    0 vote(s)
    0.0%
  1. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hello Unity Community. We are happy to anounce the release of our new Asset :

    JACK4U


    With JACK4U you can route the audio data from any ASIO capable Digital Audio Workstation (Ableton Live, NI Traktor, Pure Data...) to Unity with the JACK Audio System (Windows only atm. Requires Unity Pro)
    A first video should show you what is possible with JACK4U in combination with Ableton Live:



    Here is a video that shows the installation process and setup:

    Any feedback is welcome!
     

    Attached Files:

    Last edited: Jul 9, 2014
    vonpixel and AdamGoodrich like this.
  2. Play_Edu

    Play_Edu

    Joined:
    Jun 10, 2012
    Posts:
    722
  3. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Just uploaded a video that shows the installation process and setup.
     
  4. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
  5. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Submitted version 1.1:

    • Unity 5 support
    - PortAudio plugin structure changed to x86/x86_64
    - added a 64 Bit version of the PortAudio.dll
    - removed the options for Sample Rate, DSPBuffer and DSP Buffers as this is now handled via the
    AudioSettings from your Unity Project
    - The AudioListener is now attached to the main camera as you can't have an AudioSource and an
    AudioListener on the same GameObject if you use a custom DSP filter script.​

    • Documentation update
    Unity 5 changes the way of some audio related settings. You can't set the DSPBuffer settings and the Sample Rate anymore on the component. You have to go to the AudioSettings under 'Edit/Project Settings/Audio' to set the Sample Rate! (Windows uses 48000 per default), so if you have problems with your audio please check this.
    You also have to remove any Audio Listener that are on your JACK4UConnection gameobject.(It will work in the editor, but when you publish an app there will be a console messages that this doesn't work anymore when you use custom DSP filter scripts.)

    Until now i had some missconception about the way the JACK system works with ASIO soundcards. I changed the documentation so you now should be able to route the audio to your ASIO soundcard when using JACK4U.
     
  6. globacore

    globacore

    Joined:
    Nov 12, 2013
    Posts:
    4
    We got the JACK4U asset, but we're unable to get spacial 3D working.

    With a regular AudioSource you can hear it pan from side to side depending on where it's located relative to the camera, with JACK4U-AudioSource the volume for both channels decreases/increases but there's no panning. Is there a setting somewhere that allows it to behave like a regular 3D AudioSource?
     
  7. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hi,
    it seems that this is an old Unity issue . I investigate this to get a solution.
     
  8. globacore

    globacore

    Joined:
    Nov 12, 2013
    Posts:
    4
    If I don't enable the JACK4U Connection script, the audio source (with an audio clip) is played using spatial 3D. Not sure how the old Unity issue applies. I've also tried to use a DSP spatializer plugin (3Dception by TwoBigEars) which works properly (applying binaural effects) using an audio clip, but not with JACK4U.
     
  9. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Thanks to @Nifflas there is a little hack .
    In the next version i will make some tiny modification that when you have attached an AudioClip to your AudioSource it will multiply the values.
     
  10. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    339
    Hello, i wanted to know if with this asset i can pick up a guitar link input usin ASIO drivers?
     
  11. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    I'm not familiar with routing instruments into the audio chain but if you use Ableton Live for example and manage to get the signal from your guitar into the mixer then it should be no problem as the output from Live could be routed via JACK to Unity
     
  12. polytropoi

    polytropoi

    Joined:
    Aug 16, 2006
    Posts:
    681
    This looks very cool, any chance of Mac support in the future?
     
  13. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Sorry at the moment i have no plans for Mac support. But i added a poll to get feedback if there is a interest.
     
  14. rekerukuru89

    rekerukuru89

    Joined:
    Aug 31, 2016
    Posts:
    9
    Hello,
    looks good,
    Is it possible to use it the other way around :
    To get the Unity audio in JACK and to redirect it to an software/audio card?

    Thanks
     
  15. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Hi,
    you can only pass through the audio that comes from JACK into Unity to another JACK receiver, but you can't sent the Audio that is created in Unity.
     
  16. rekerukuru89

    rekerukuru89

    Joined:
    Aug 31, 2016
    Posts:
    9
    Thanks for the quick reply !
     
  17. contempt

    contempt

    Joined:
    Jul 31, 2012
    Posts:
    88
    Is it possible with JACK4U to have multiple live audio inputs in Unity? So if I wanted to visualize the vocals separate from the guitar using Visualizer Studio for instance, I could have 2 different inputs and independently visualize each audiosource?
     
  18. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Unfortunately you can only route one stereo input into Unity. I didn't managed to read more channels without problems.
     
  19. contempt

    contempt

    Joined:
    Jul 31, 2012
    Posts:
    88
    Theoretically could I create multiple client instances of an app that has JACK4U (similar to your YouTube sample) and connect all of them to a local "server" Unity client that collects all the data streams and visualizes them?
     
  20. Chrisad

    Chrisad

    Joined:
    Mar 12, 2013
    Posts:
    55
    Hello monoflow

    I want to use JACK4U to retrieve the audio of my mic in realtime with no latency on Unity.
    I need to connect Jack Audio to the system and start it.
    But as soon as I use a frame/period under 1024, the audio is glitchy. Do you know an idea why the problem occurs? (Unity 5.5.1f1)
     
  21. _monoflow

    _monoflow

    Joined:
    Mar 26, 2014
    Posts:
    271
    Do you have a lot of processes running on the machine? To get the best settings without any glitch you have to carefully tune your system so that only the essential processes are runing (stop all programms and background processes that are not necessary) But it could also depend on your CPU power.
     
  22. Chrisad

    Chrisad

    Joined:
    Mar 12, 2013
    Posts:
    55
    I made some tests and I became able to use it (dont't really know what I really do). But even if I set the frame/period to 64, I always have a small latency when I use the mic. Can I have zero latency or my hardware ?

    UPDATE :
    Now the connection seems to dont work anymore. Jack4U connection send the error message : Queue Full!

    here my settings :

    upload_2017-2-3_12-28-9.png
     
  23. Chrisad

    Chrisad

    Joined:
    Mar 12, 2013
    Posts:
    55
    Do you have an example of using JACK4U with puredata on Windows?
     
  24. LeapGamer

    LeapGamer

    Joined:
    Dec 6, 2013
    Posts:
    4
    I suddenly had this problem too after having everything work for a while. Did you find a solution?
     
  25. Chrisad

    Chrisad

    Joined:
    Mar 12, 2013
    Posts:
    55
    Each time I had the "Queue Full" Error, I needed to kill all process relate to jack4u. Then I reloaded my app.
     
  26. kinnik

    kinnik

    Joined:
    Sep 6, 2014
    Posts:
    17
    Dos this plugin support asio output for low latency audio in games? I don't think this is clear by the discription..
     
  27. Dr-Game

    Dr-Game

    Joined:
    Mar 12, 2015
    Posts:
    161
    I am a REASON (DAW) user.
    I have some trouble in developing a music game..
    I wonder this asset can help me or not...
    like most of music or rhythm game.
    When background music starts to play.All of the notes go forward to target where the player will press the button in right bit time.
    Sometimes this notes arrive in times.Sometimes overhead...and Sometimes they are not fast enough...
    How can fix the issue?? This asset will be helpful??any guys ??any solution??
     
  28. linson-andrew

    linson-andrew

    Joined:
    Feb 26, 2014
    Posts:
    1
    Is this asset dead? I added a new connection, start the jack server, and press play in unity... but unity crashes.
     
    floraffray likes this.
  29. floraffray

    floraffray

    Joined:
    Jan 12, 2014
    Posts:
    5
    I just bought this asset and tried running it with unity 2019.3.0b12 and it keeps crashing everytime I play the example scene. Can I get some help? Was really looking forward to using this, would be totally worth the price if I can get it running.