File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -162,9 +162,7 @@ function initDebug(cfg)
162162function cfg = initAudio(cfg )
163163
164164 if cfg .initAudio
165-
166- requestedLatency = 3 ;
167-
165+
168166 InitializePsychSound(1 );
169167
170168 cfg.audio.devIdx= [];
@@ -192,7 +190,7 @@ function initDebug(cfg)
192190 cfg.audio.pahandle = PsychPortAudio(' Open' , ...
193191 cfg .audio .devIdx , ...
194192 cfg .audio .playbackMode , ...
195- requestedLatency , ...
193+ cfg . audio . requestedLatency , ...
196194 cfg .audio .fs , ...
197195 cfg .audio .channels );
198196
Original file line number Diff line number Diff line change 2222 fieldsToSet.audio.fs = 44800 ;
2323 fieldsToSet.audio.channels = 2 ;
2424 fieldsToSet.audio.initVolume = 1 ;
25+ fieldsToSet.audio.requestedLatency = 3 ;
2526
2627 % playing parameters
2728 % sound repetition
You can’t perform that action at this time.
0 commit comments