bastibe / PySoundCard

PySoundCard is an audio library based on PortAudio, CFFI and NumPy
BSD 3-Clause "New" or "Revised" License
87 stars 9 forks source link

Stream is now able to handle input_device = None #1

Closed holyhead closed 10 years ago

holyhead commented 11 years ago

As written in the doc string:

"If no input or output device (or True) is specified, the default input/output device is taken. For input/output-only streams, proved None or False as input/output-device."

If there is no input_device or output_device, simply ignore it and don't create the structures needed for PortAudio. My patch provides the necessery changes (although only tested with input_device = None). Additionally I've updated the callback which now handles disabled input / output devices.

bastibe commented 11 years ago

Very nice! Thank you for finding that bug! I'll push your fix as part of the next point release later this week.

bastibe commented 10 years ago

I implemented your fix in 9bfaae2892

Thank you very much for finding that bug!