spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
1.02k stars 149 forks source link

Launching the ASIO control panel from python #434

Open ValentinPintat opened 2 years ago

ValentinPintat commented 2 years ago

Hello, Is there an easy way to lauch the the ASIO control panel from python ? I know that it's an option on many DAW's, like this one :

image

I read a little bit the documentation of Port audio and it seems that the function is implemented :

image

I cannot find that function in sounddevice_build.py, does that means that the function is not implemented yet ? If not, is that difficult to implement ? If needed I can try to implement it following your advices to improve SoundDevice ?

Thank you very much,

mgeier commented 2 years ago

I cannot find that function in sounddevice_build.py, does that means that the function is not implemented yet ?

Correct.

That's part of the platform-specific functionality that's not implemented yet, see #4.

If not, is that difficult to implement ?

I don't know if it's possible at all from Python. You'll need "the calling application's main window handle", do you have that?

Once you have that, and if it works at all, then it should be easy.

If needed I can try to implement it following your advices to improve SoundDevice ?

Yes, that would be great!

First, we should try to find out if it works at all, and then we have to come up with a good API.

There was already some work in #85, but this has stalled. Maybe we can reactivate this?