Jochie 👨🏻💻🏳️🌈<p>Today's minor software victory involves arm-wrestling with the portaudio wrapper for Python.</p><p>The hotplug branch (referenced in <a href="https://github.com/PortAudio/portaudio/wiki/HotPlug" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/PortAudio/portaudio</span><span class="invisible">/wiki/HotPlug</span></a>) of the C level portaudio code seems to be a dead-end, so that's a bumner.</p><p>Experimentally I observed that calling terminate() twice on the PyAudio() object gets me a fresh list without restarting the program (a TUI) even though, as far as I can tell, I only call open() once. Some ref-count bug?</p><p>I'll take the win 🔊</p><p><a href="https://strangeweb.page/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://strangeweb.page/tags/PyAudio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PyAudio</span></a> <a href="https://strangeweb.page/tags/PortAudio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PortAudio</span></a></p>