spatialaudio / python-sounddevice

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

Add PaWasapi_IsLoopback() to cdef #392

Closed mgeier closed 2 years ago

mgeier commented 2 years ago

This function has been added in https://github.com/PortAudio/portaudio/pull/672 and hasn't yet been part of a PortAudio release.

For now, this can be used like this:

import sounddevice as sd
sd._lib.PaWasapi_IsLoopback(7)

At a later point, we might want to add a more Pythonic interface. See also #4 and #85.