cpp-lln-lab / CPP_PTB

a set of function to make it easier to create behavioral, EEG, fMRI experiment with psychtoolbox
https://cpp-ptb.readthedocs.io/en/latest/index.html#
MIT License
14 stars 13 forks source link

make `cleanUp` less brittle #182

Closed Remi-Gau closed 2 years ago

Remi-Gau commented 2 years ago

Crash can sometimes during clean up because of audio device index issues.

Try to add a catch / try that throws a warning in case of failure

https://github.com/cpp-lln-lab/CPP_PTB/blob/5da05cf0d463a62ee94854b78b91bc3cded6b414/src/utils/cleanUp.m#L25

Remi-Gau commented 2 years ago

closed by #183