diff --git a/cleanUp.m b/cleanUp.m index 03e51cc..0c24d40 100644 --- a/cleanUp.m +++ b/cleanUp.m @@ -12,6 +12,11 @@ % Screen Close All sca; +% Close Psychportaudio if open +if PsychPortAudio('GetOpenDeviceCount') ~= 0 + PsychPortAudio('Close'); +end + if ~ismac % remove PsychDebugWindowConfiguration clear Screen