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

Can't get Lasp deviceselector example working as build on Mac M1 #46

Closed
isaacjoy opened this issue Sep 30, 2021 · 9 comments
Closed

Can't get Lasp deviceselector example working as build on Mac M1 #46

isaacjoy opened this issue Sep 30, 2021 · 9 comments
Assignees
Labels

Comments

@isaacjoy
Copy link

isaacjoy commented Sep 30, 2021

Hi there,

I'm sort of new to Unity so apologies if this is a silly mistake but I can't get the deviceselector example to work on my Mac M1 as a build. It works in the Unity editor if I hit play (I'm using a guitar signal to control some animations and have checked it).

I would love to get the build to work so I can use Lasp with multiple screens in my performance.

Here is a video to show..

Untitled.mp4

Thanks for making an awesome package though! Exactly what I need
Isaac

@isaacjoy isaacjoy changed the title Can't get Can't get Lasp deviceselector example working as build on Mac M1 Sep 30, 2021
@keijiro keijiro self-assigned this Oct 1, 2021
@SilverXenolupus
Copy link

I'm not sure if this is the right place to put this, but I am having a similar problem. I think I know why LASP isn't working on M1 and ARM devices in general, but would appreciate some confirmation from Keijiro. LASP has a dependency, libsoundio, which according to its system requirements, only works on devices with Intel Architecture. The M1 runs on ARM architecture, therefore libsoundio won't work. And if I am correct, this is what is causing LASP to not work. Is this correct, or should LASP actually be working on the M1, and I am doing something wrong?

@keijiro
Copy link
Owner

keijiro commented Jan 4, 2022

Lasp 2.1.4 and later support Apple silicon.

https://github.com/keijiro/Lasp/releases/tag/2.1.4

@SilverXenolupus
Copy link

SilverXenolupus commented Jan 5, 2022

Based on my testing, this library needs to be built and installed in order to build for Apple Silicon. https://github.com/keijiro/libsoundio
Otherwise, Lasp will not work.

It is not needed to run the finished app though. It is only needed for building.

@keijiro
Copy link
Owner

keijiro commented Jan 28, 2022

I found an issue with the plugin .meta file that excludes itself from the Apple silicon standalone player. I fixed this issue in the latest update (v2.1.6).

@keijiro
Copy link
Owner

keijiro commented Jan 28, 2022

I'm closing this issue now. Please reopen it if it still reproduces.

@keijiro keijiro closed this as completed Jan 28, 2022
@aleannox
Copy link

Thanks @keijiro for the great plugin as always! :)

I am still having issues to get it working in a build on an M1 Max w/ Unity 2021.3.13, but editor works fine.

In the build, I can select the device but there is no signal, laspStream?.GetChannelLevel(0, _filterType) always returns -256. There are no errors in the Player.log only messages like Thread 0x16fd3b000 may have been prematurely finalized

@keijiro
Copy link
Owner

keijiro commented Apr 14, 2023

@aleannox Does it reproduce with the sample project in this repository?

@aleannox
Copy link

@keijiro Good point, I can build the sample project with 2021.3.13 and it works. With my other project I don't even get the macOS question to allow the built app to use the microphone. Do you have an idea which components of my project could be in conflict with Lasp or libsoundio? Thanks!

@aleannox
Copy link

@keijiro OK I found the solution. If I enter something in the player settings / Mac configuration / Microphone usage description then it works. :) Thanks!

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

No branches or pull requests

4 participants