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

pysoundcard.devices deprecated/moved #63

Closed stuaxo closed 8 years ago

stuaxo commented 8 years ago

Hi, In some old code I do from pysoundcard import devices this seems to not work on current pysoundcard, has it been moved or deprecated ?

S

bastibe commented 8 years ago

You can use device_info() to get a generator of all currently available devices, or default_input_device() and default_output_device() to get the current default devices.

stuaxo commented 8 years ago

Cheers, got my stuff working.

Also had to update to change from using Stream to InputStream, also parameters like input_channels > channels, buffer_width>buffersize etc.

bastibe commented 8 years ago

I'm sorry that I can't devote as much time to this project as it would need. But real life, and the horrors that lurk within portaudio, conspire against such a time investment.

stuaxo commented 8 years ago

Still good your able to respond - I notice that portaudio moved to git some time in the last year or two, so expect their speed to move somewhere above glacial which is good.