You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to get all microphones via sc.all_microphones, i got this error.
It seems to be in the channel part of the return, but I have no idea where this is coming from or how to fix this.
sc.default_microphone works just fine.
Here the traceback: Traceback (most recent call last): File "C:/Users/Jorian Rennen/PycharmProjects/Test_project/Feedback_terminal.py", line 41, in <module> print(sc.all_microphones(include_loopback=True)) File "C:\Users\Jorian Rennen\PycharmProjects\Test_project\venv\lib\site-packages\soundcard\mediafoundation.py", line 464, in __repr__ return '<Microphone {} ({} channels)>'.format(self.name,self.channels) File "C:\Users\Jorian Rennen\PycharmProjects\Test_project\venv\lib\site-packages\soundcard\mediafoundation.py", line 395, in channels raise RuntimeError('Property was expected to be a blob, but is not a blob') RuntimeError: Property was expected to be a blob, but is not a blob
Thank you in advance!
The text was updated successfully, but these errors were encountered:
To debug this, you'll have to debug into the linked channels function, check the returned type (propvariant.ptr[0].vt), and figure out how to get a valid channel from the propvariant.
If you find a solution, I'll be happy to merge it. But I can't debug this on my end, because none of my sound cards behave this way.
Hi there,
While trying to get all microphones via sc.all_microphones, i got this error.
It seems to be in the channel part of the return, but I have no idea where this is coming from or how to fix this.
sc.default_microphone works just fine.
Here the traceback:
Traceback (most recent call last): File "C:/Users/Jorian Rennen/PycharmProjects/Test_project/Feedback_terminal.py", line 41, in <module> print(sc.all_microphones(include_loopback=True)) File "C:\Users\Jorian Rennen\PycharmProjects\Test_project\venv\lib\site-packages\soundcard\mediafoundation.py", line 464, in __repr__ return '<Microphone {} ({} channels)>'.format(self.name,self.channels) File "C:\Users\Jorian Rennen\PycharmProjects\Test_project\venv\lib\site-packages\soundcard\mediafoundation.py", line 395, in channels raise RuntimeError('Property was expected to be a blob, but is not a blob') RuntimeError: Property was expected to be a blob, but is not a blob
Thank you in advance!
The text was updated successfully, but these errors were encountered: