keijiro / KlakLasp

An extension for the Klak Wiring system to create audio reactive behaviors.
MIT License
162 stars 23 forks source link

Crash when no audio interface is available #2

Closed joshleong closed 7 years ago

joshleong commented 7 years ago

Hi Keijiro, I've attempted to run some of the samples and build something from scratch using the Klak and Lasp Libraries and Unity is Crashing on me consistently.

Machine: Model: MacPro6,1, BootROM MP61.0116.B17, 6 processors, 6-Core Intel Xeon E5, 3.5 GHz, 64 GB, SMC 2.20f18 Graphics: AMD FirePro D500, AMD FirePro D500, PCIe, 3072 MB

errlog.txt

keijiro commented 7 years ago

(The original commend was editor for ease of read)

keijiro commented 7 years ago

Could you give me some information about the audio input device you're using:

joshleong commented 7 years ago

I'm using an OP-1, and it's going through USB.

joshleong commented 7 years ago

Although I thought you could also use it with an Audio Source within Unity.

keijiro commented 7 years ago

If I remember correctly, OP-1 doesn't work as audio input/output interface. Could you confirm it?

At the moment KlakLASP doesn't support input from Audio Source.

joshleong commented 7 years ago

Alright I'll try to verify, what's the simplest setup to get klak-lasp working?

keijiro commented 7 years ago

Use a proper audio interface. Then it might work.

keijiro commented 7 years ago

Title changed. The plugin shouldn't crash even when there is no available audio interface on the system. It should output a proper error message and continue running with null input. This issue might be easily reproducible with Mac Pro (because it doesn't have a built-in audio interface).

joshleong commented 7 years ago

I'll have an audio interface I can test with tomorrow.

joshleong commented 7 years ago

I bought a Focusrite Scarlett Solo for an audio interface, Unity doesn't crash on compile anymore, although I see that LASP is pulling from the first channel, which is the mic channel on the Focusrite, I currently have the OP-1 connected to the second channel which has a normal 1/4". Might try a 3.5MM to XLR connection.

Thanks for the great unity plugin!

keijiro commented 7 years ago

This issue was moved to the LASP project. https://github.com/keijiro/Lasp/issues/5

I'm closing this ticket now. Thanks for pointing out the issue.