changeset 19706:b5a8f0f31664

Handle interrupt in audio blocking play and record (bug #44142) * audiodevinfo.cc (audioplayer::playblocking, audiorecorder::recordblocking): Call OCTAVE_QUIT in data-driven loops.
author Mike Miller <mtmiller@ieee.org>
date Sat, 07 Feb 2015 15:33:20 -0500
parents 322d0fe84a8c
children cdf9c83b0e79
files libinterp/dldfcn/audiodevinfo.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/audiodevinfo.cc	Sun Feb 01 18:16:00 2015 -0500
+++ b/libinterp/dldfcn/audiodevinfo.cc	Sat Feb 07 15:33:20 2015 -0500
@@ -1153,6 +1153,7 @@
 
   for (unsigned int i = start; i < end; i += buffer_size)
     {
+      OCTAVE_QUIT;
       if (octave_callback_function != 0)
         octave_play_callback (0, buffer, buffer_size, 0, 0, this);
       else
@@ -1827,6 +1828,7 @@
 
   for (unsigned int i = 0; i < frames; i += buffer_size)
     {
+      OCTAVE_QUIT;
       Pa_ReadStream (get_stream (), buffer, buffer_size);
 
       if (octave_callback_function != 0)