-
Notifications
You must be signed in to change notification settings - Fork 4
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
Linux build 0 devices #19
Comments
@nwhitehead Could you have a look? I thought |
@FossaMalaEnt Could you take a look at the |
I've never built snaps before. Today I went down the rabbit hole and got a test app working in Linux. .NET and SnapThe first annoyance was getting anything compiled with dotnet to run. I tried to use the The solution for this first hurdle was to add the line Then I got an error message at runtime that said "Process terminated. Couldn't find a valid ICU package...". I fixed that by adding ALSA ConfigurationNext the app tried to run but had trouble with missing libraries. So I added Now the app ran and tried to use ALSA, but got permission denied errors on paths like I also did a command In the end my tiny test snap app was able to use WeirdnessOne thing I noticed is that the snap app sees 13 audio devices. Running the app outside the snap shows 20 devices. I think this might be related to versions of things in containers but I have no idea. Another oddity is that the snap application defaults to 48 kHz; running the release binary directly defaults to 44.1 kHz. In my test app I always request 44.1 kHz so the change in defaults did not affect the playback. In case it's helpful, here is my
|
My conclusion after the snap experiments is that PortAudioSharp2 doesn't have any issue. There are some hurdles in general to getting ALSA and .NET working in snaps but I think those are outside the scope of this project. @FossaMalaEnt Are you able to get anything working, perhaps following the snapcraft.yml stuff I used? |
I tried but encountered errors with |
I noticed that Ubuntu 20 uses libicu66 and Ubuntu 22 uses libicu70. However, this doesn't seem to be related. I tried on the new Ubuntu 22 machine and encountered the same error: |
@FossaMalaEnt For me it was required. My local Ubuntu 23.10 has a version of libicu, it is libicu72. Inside the snapcraft container it needed libicu70. I think which libraries it needs is controlled mostly by the https://learn.microsoft.com/en-us/dotnet/core/runtime-config/globalization |
Hi, thanks for the work on this repo!
On windows It works great, but on linux I'm having some touble, the device count is always 0 and I'm unable to record any audio.
I've updated the package on the version 1.0.0 but the issue is still present, tested on Ubuntu Desktop, Arch linux and Porteus Kiosk.
The text was updated successfully, but these errors were encountered: