Home | History | Annotate | Download | only in patches
      1 --- espeak-1.41.01-source/src/wave_sada.cpp.orig	2009-09-17 15:42:57.100868947 -0400
      2 +++ espeak-1.41.01-source/src/wave_sada.cpp	2009-09-17 15:41:15.682110747 -0400
      3 @@ -306,7 +306,11 @@
      4  int wave_is_busy(void* theHandler)
      5  {
      6     uint32_t time;
      7 -   wave_get_remaining_time(total_samples_sent - 1, &time);
      8 +   if (total_samples_sent >= 1) {
      9 +       wave_get_remaining_time(total_samples_sent - 1, &time);
     10 +   } else {
     11 +       time = 0;
     12 +   }
     13     return time != 0;
     14  }
     15  
     16