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

Stream initialization error (OpeningDevice) #54

Open
Personuo opened this issue Jun 12, 2022 · 9 comments
Open

Stream initialization error (OpeningDevice) #54

Personuo opened this issue Jun 12, 2022 · 9 comments
Assignees
Labels

Comments

@Personuo
Copy link

Personuo commented Jun 12, 2022

When I run DeviceSelector scene, I immediately get this error Stream initialization error (OpeningDevice)

win10.
unity version 2021.3.4

Not sure if I'm getting something wrong, I'm not using any midi input device, I'm just trying to get the audio from loopback on windows.

I just download and run, no do anything

@keijiro keijiro self-assigned this Jun 13, 2022
@keijiro
Copy link
Owner

keijiro commented Jun 13, 2022

What audio device are you using?

@Personuo
Copy link
Author

Personuo commented Jun 13, 2022

A normal realtek(R) Audio in my laptop integrated sound card.
I've tried cscore and fmod with no problems,both can detect the device and output spectrum data

In Lasp, the device is still found normally , although the error is always output. The device drop-down has my sound devices (both microphone and realtek(R) Audio).

@keijiro
Copy link
Owner

keijiro commented Jun 14, 2022

Is there any other processes (apps) using that audio device? Windows usually doesn't allow sharing an audio device between multiple processes.

@Personuo
Copy link
Author

There should be none, when I restarted my computer and tried lasp immediately, I still get the error.
Then I am running the cscore and fmod projects and they still work well

@Personuo
Copy link
Author

I mean, I don't have any external audio devices, only the sound card in the motherboard of my laptop.

My expectation is to play youtube music in the chrome and then unity can receive the data of this audio from loopback. (The music can still be played from my laptop speakers)

@keijiro
Copy link
Owner

keijiro commented Jun 15, 2022

What happens when switching "Use Default Device"?

By the way, you can't do loopback with LASP. You have to install a virtual audio device app to loop it back to LASP.

@Personuo
Copy link
Author

yes, I found another desktop windows to test and it works fine but only searches for the microphone.
If so, then I will try other tools, thank you

@CharlesGrs
Copy link

CharlesGrs commented Dec 19, 2023

@keijiro Hey Kejiro, same issue here; I have been using LASP for a while now without any issue I have no idea what causes this error now.. I don't think there is any other software using the audio device any idea on how to track that issue ?

Few more information, Unity 2023.1.16 (it was working with that version previously), on Windows 11, absolutely nothing else open, and same error for every device that I select, no matter the device ..

Many thanks

@CharlesGrs
Copy link

This issue was solved by giving Unity access to the microphone in the privacy settings of Windows 11.

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

3 participants