eiz / SynchronousAudioRouter

Low latency application audio routing for Windows
http://sar.audio/
GNU General Public License v3.0
994 stars 136 forks source link

jackd immediatly closes after starting SAR #107

Open hersi97 opened 3 years ago

hersi97 commented 3 years ago

Hi!

I tried using jack with SAR yesterday, and it worked beautifully, but today I can't get it to work again. It always just throws me back at the command line.

When using "ASIO::ASIO4ALL v2" it works (as in: it doesn't close jackd), but then I am not able to hear windows applications.

PS C:\Users\[...]\Desktop> & "C:\Program Files\JACK2\jackd.exe" -R -P95 -S -Xwinmme -ae -d portaudio -d "ASIO::Synchronous Audio Router" -r48000 -p256
jackdmp 1.9.16
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2020 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Drivers/internals found in : C:\Program Files\JACK2
Drivers/internals found in : C:\Program Files\JACK2
JACK server starting in realtime mode with priority 95
self-connect-mode is "Ignore self connect requests to external ports only"
AsioDrv::: CAsioDrv()...
AsioDrv::: InitWdmDrv()...
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1127 19:10:11.717025 19152 dllmain.cpp:43] Logging disabled. (This shouldn't log.)
I1127 19:10:11.718024 19152 wrapper.cpp:33] SarAsioWrapper::SarAsioWrapper
I1127 19:10:11.719025 19152 wrapper.cpp:39] SarAsioWrapper::init
I1127 19:10:11.719025 19152 tinyasio.cpp:31] Querying installed ASIO drivers.
I1127 19:10:11.719025 19152 tinyasio.cpp:75] Found ASIO driver: ASIO4ALL v2 with CLSID {232685C6-6548-49D8-846D-4141A3EF7560}
I1127 19:10:11.720026 19152 tinyasio.cpp:75] Found ASIO driver: Xonar DSX ASIO(64) with CLSID {71E563CB-2BEB-4AF6-9F4B-2629AC49314F}
I1127 19:10:11.720026 19152 tinyasio.cpp:75] Found ASIO driver: Guitar Rig Mobile I/O with CLSID {02490678-463E-4C92-92EE-B25F7F808B1E}
I1127 19:10:11.720026 19152 tinyasio.cpp:75] Found ASIO driver: Guitar Rig Session I/O with CLSID {07490678-463E-4C92-92EE-B25F7F808B1E}
I1127 19:10:11.721025 19152 tinyasio.cpp:75] Found ASIO driver: Rig Kontrol 3 with CLSID {8FCFCB5B-DD46-4C13-9045-C6894CA67BB9}
I1127 19:10:11.721025 19152 tinyasio.cpp:75] Found ASIO driver: Synchronous Audio Router with CLSID {0569D852-1F6A-44A7-B7B5-EFB78B66BE21}
I1127 19:10:11.721025 19152 tinyasio.cpp:80] Done querying ASIO drivers. Status: 259
I1127 19:10:12.249236 19152 wrapper.cpp:55] SarAsioWrapper::getDriverName
I1127 19:10:12.249236 19152 wrapper.cpp:61] SarAsioWrapper::getDriverVersion
I1127 19:10:12.250236 19152 wrapper.cpp:105] SarAsioWrapper::getChannels
I1127 19:10:12.251236 19152 wrapper.cpp:138] SarAsioWrapper::getBufferSize
I1127 19:10:12.251236 19152 wrapper.cpp:209] SarAsioWrapper::getSampleRate
I1127 19:10:12.251236 19152 wrapper.cpp:198] SarAsioWrapper::canSampleRate
I1127 19:10:12.295238 19152 wrapper.cpp:33] SarAsioWrapper::SarAsioWrapper
I1127 19:10:12.295238 19152 wrapper.cpp:39] SarAsioWrapper::init
I1127 19:10:12.296238 19152 tinyasio.cpp:31] Querying installed ASIO drivers.
I1127 19:10:12.296238 19152 tinyasio.cpp:75] Found ASIO driver: ASIO4ALL v2 with CLSID {232685C6-6548-49D8-846D-4141A3EF7560}
I1127 19:10:12.297237 19152 tinyasio.cpp:75] Found ASIO driver: Xonar DSX ASIO(64) with CLSID {71E563CB-2BEB-4AF6-9F4B-2629AC49314F}
I1127 19:10:12.297237 19152 tinyasio.cpp:75] Found ASIO driver: Guitar Rig Mobile I/O with CLSID {02490678-463E-4C92-92EE-B25F7F808B1E}
I1127 19:10:12.297237 19152 tinyasio.cpp:75] Found ASIO driver: Guitar Rig Session I/O with CLSID {07490678-463E-4C92-92EE-B25F7F808B1E}
I1127 19:10:12.298238 19152 tinyasio.cpp:75] Found ASIO driver: Rig Kontrol 3 with CLSID {8FCFCB5B-DD46-4C13-9045-C6894CA67BB9}
I1127 19:10:12.298238 19152 tinyasio.cpp:75] Found ASIO driver: Synchronous Audio Router with CLSID {0569D852-1F6A-44A7-B7B5-EFB78B66BE21}
I1127 19:10:12.298238 19152 tinyasio.cpp:80] Done querying ASIO drivers. Status: 259
I1127 19:10:12.829236 19152 wrapper.cpp:55] SarAsioWrapper::getDriverName
I1127 19:10:12.829236 19152 wrapper.cpp:61] SarAsioWrapper::getDriverVersion
I1127 19:10:12.830236 19152 wrapper.cpp:105] SarAsioWrapper::getChannels
I1127 19:10:12.831236 19152 wrapper.cpp:138] SarAsioWrapper::getBufferSize
I1127 19:10:12.831236 19152 wrapper.cpp:209] SarAsioWrapper::getSampleRate
I1127 19:10:12.831236 19152 wrapper.cpp:198] SarAsioWrapper::canSampleRate
I1127 19:10:12.832237 19152 wrapper.cpp:209] SarAsioWrapper::getSampleRate
I1127 19:10:12.832237 19152 wrapper.cpp:335] SarAsioWrapper::createBuffers(infos, 12, 256, callbacks)
I1127 19:10:12.832237 19152 wrapper.cpp:431] Creating inner driver buffers. Count: 4 BufferSize: 256 Callbacks: 00000000008F9F30
I1127 19:10:12.833237 19152 wrapper.cpp:437]   ChannelInfo: buffer[0]: 0000000000000000 buffer[1]: 0000000000000000 index: 0 isInput: 1
I1127 19:10:12.833237 19152 wrapper.cpp:437]   ChannelInfo: buffer[0]: 0000000000000000 buffer[1]: 0000000000000000 index: 1 isInput: 1
I1127 19:10:12.833237 19152 wrapper.cpp:437]   ChannelInfo: buffer[0]: 0000000000000000 buffer[1]: 0000000000000000 index: 0 isInput: 0
I1127 19:10:12.834237 19152 wrapper.cpp:437]   ChannelInfo: buffer[0]: 0000000000000000 buffer[1]: 0000000000000000 index: 1 isInput: 0
I1127 19:10:12.834237 19152 wrapper.cpp:125] SarAsioWrapper::getLatencies
JackWinMMEDriver::Open - while creating output port: Undefined external error. | winmme, system_midi, out
I1127 19:10:12.958237 19152 wrapper.cpp:73] SarAsioWrapper::start
PS C:\Users\[...]\Desktop>
amurzeau commented 3 years ago

Maybe the issue is winmme, I'm using portaudio with jackd and SAR without issues.

I don't know much of the jackd command line options, but I'm using it too without issues. I'm using this command line (generated by jackctl): jackd -p128 -t1000 -u -dportaudio -r48000 -p256 -D -C"ASIO::Synchronous Audio Router" -P"ASIO::Synchronous Audio Router"

And this SAR configuration (in %appdata%\SynchronousAudioRouter\default.json):

{
  "driverClsid": "{232685C6-6548-49D8-846D-4141A3EF7560}",
  "enableApplicationRouting": false,
  "endpoints": [
    {
      "channelCount": 2,
      "description": "Virtual SAR Input",
      "id": "ep_1",
      "type": "recording"
    },
    {
      "channelCount": 2,
      "description": "Virtual SAR Aux Output",
      "id": "ep_3",
      "type": "playback"
    },
    {
      "channelCount": 8,
      "description": "Virtual SAR Output",
      "id": "ep_2",
      "type": "playback"
    }
  ]
}

The selected ASIO driver ({232685C6-6548-49D8-846D-4141A3EF7560}) is ASIO4ALL v2.

hersi97 commented 3 years ago

I have found that if I had it set up with 3 2ch playback and a 2ch recording device it would close jackd, but if I removed 2 playback devices it would work again. When I get to my pc again I will provide the config tomorrow.