Added a check in alsa sink if error has occurred due to blocking; if so, it will...
[debian/gnuradio] / gr-audio-alsa / src / audio_alsa_sink.h
index d4b540382e766d8568e65bd5f812aa33abe08250..f3007f60f8a0503040873966c613776feea07d45 100644 (file)
@@ -83,6 +83,7 @@ class audio_alsa_sink : public gr_sync_block {
   // random stats
   int                  d_nunderuns;            // count of underruns
   int                  d_nsuspends;            // count of suspends
+  bool                 d_ok_to_block;      // defaults to "true", controls blocking/non-block I/O
 
   void output_error_msg (const char *msg, int err);
   void bail (const char *msg, int err) throw (std::runtime_error);