Skip to content

Commit adadfd4

Browse files
authored
Merge pull request #16 from marcobarilari/marco-dev_close-audioport
add close PsychPortAudio close to clean up
2 parents f4820bd + f6fd378 commit adadfd4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cleanUp.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
% Screen Close All
1313
sca;
1414

15+
% Close Psychportaudio if open
16+
if PsychPortAudio('GetOpenDeviceCount') ~= 0
17+
PsychPortAudio('Close');
18+
end
19+
1520
if ~ismac
1621
% remove PsychDebugWindowConfiguration
1722
clear Screen

0 commit comments

Comments
 (0)