gentnerlab / pyoperant

python package for operant conditioning
BSD 3-Clause "New" or "Revised" License
13 stars 15 forks source link

derisking the pyaudio callback #111

Closed neuromusic closed 8 years ago

neuromusic commented 8 years ago

this gets rid of the wholly undocumented pyaudio.callback attribute, which allows users to add arbitrary python code into the pyaduio callback

this is risky because code which takes more than trivial processing time can bork the audio.

this change effectively forces any user who wants to manipulate the callback function to read the pyaduio/portaudio documentation and caveats on it's implementation

siriuslee commented 8 years ago

This seems pretty harmless and is well motivated. I like it!