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

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 ...@@ -420,6 +420,7 @@ while timeout %normally only one time, one loop
waitFor = sArgs.recsamples ./ sArgs.samplingRate; waitFor = sArgs.recsamples ./ sArgs.samplingRate;
elseif playback elseif playback
ita_verbose_info('start playback',1) ita_verbose_info('start playback',1)
sArgs.block = true;
pageno = hPlayRec('play',single(data.timeData),out_channel_vec); pageno = hPlayRec('play',single(data.timeData),out_channel_vec);
waitFor = data.nSamples ./ data.samplingRate; waitFor = data.nSamples ./ data.samplingRate;
else else
...@@ -429,7 +430,7 @@ while timeout %normally only one time, one loop ...@@ -429,7 +430,7 @@ while timeout %normally only one time, one loop
hPlayRec('reset'); hPlayRec('reset');
ita_verbose_info('TIMEOUT, I will try a reset and redo',0) ita_verbose_info('TIMEOUT, I will try a reset and redo',0)
ita_verbose_info(errmsg.message,0); ita_verbose_info(errmsg.message,0);
timeout = true; timeout = true;
break break
end end
...@@ -450,7 +451,7 @@ while timeout %normally only one time, one loop ...@@ -450,7 +451,7 @@ while timeout %normally only one time, one loop
pause(0.01) % pdi changed: was 0.1 before pause(0.01) % pdi changed: was 0.1 before
lastSample = 1; lastSample = 1;
if sArgs.block && ~timeout && ~using_more_pages if sArgs.block && ~timeout %&& ~using_more_pages
%if verboseMode || max_buffer_reached, disp('ITA_PORTAUDIO: %if verboseMode || max_buffer_reached, disp('ITA_PORTAUDIO:
%waiting for results'), end;%pdi:please be quiter %waiting for results'), end;%pdi:please be quiter
isfinished = hPlayRec('isFinished',pageno); isfinished = hPlayRec('isFinished',pageno);
......
Markdown is supported
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