spatialaudio / python-sounddevice

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

Question about rec_gui.py "settings"? #407

Closed xiaoli1996 closed 2 years ago

xiaoli1996 commented 2 years ago

Hello, I meet a question. Now I running rec_gui.py, "Invalid number of channels [PaErrorCode -9998]" is occurred when I click "OK" or "Cancel" after clicking "settings" . I didn't change any settings in “settings” button, just click "OK" or "Cancel". But the bug has not occurred when I direct click "record" and "stop", everything is normal.

xiaoli1996 commented 2 years ago

1 2

xiaoli1996 commented 2 years ago

Clicking directly "record" and "stop", everything is normal. 3

mgeier commented 2 years ago

Thanks for reporting this!

It looks like you discovered a silly mistake that I made, see #408. Can you please check if that works for you?

xiaoli1996 commented 2 years ago

@mgeier Many thanks for your help, it solves my problem.

mgeier commented 2 years ago

Thanks for testing this. If there are any further problems, let me know!