Commit c7e063e8 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

bugfix: stop button was no longer showing on playback

this was the result of the reduction of the page_size.
this should now work. i did not test this very much, especially recording
parent 31772a35
......@@ -420,6 +420,7 @@ while timeout %normally only one time, one loop
waitFor = sArgs.recsamples ./ sArgs.samplingRate;
elseif playback
ita_verbose_info('start playback',1)
sArgs.block = true;
pageno = hPlayRec('play',single(data.timeData),out_channel_vec);
waitFor = data.nSamples ./ data.samplingRate;
......@@ -429,7 +430,7 @@ while timeout %normally only one time, one loop
ita_verbose_info('TIMEOUT, I will try a reset and redo',0)
timeout = true;
timeout = true;
......@@ -450,7 +451,7 @@ while timeout %normally only one time, one loop
pause(0.01) % pdi changed: was 0.1 before
lastSample = 1;
if sArgs.block && ~timeout && ~using_more_pages
if sArgs.block && ~timeout %&& ~using_more_pages
%if verboseMode || max_buffer_reached, disp('ITA_PORTAUDIO:
%waiting for results'), end;%pdi:please be quiter
isfinished = hPlayRec('isFinished',pageno);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment