Changeset 1750:e1745c2a2f8c in roaraudio for roard/loop.c


Ignore:
Timestamp:
05/18/09 21:45:19 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

only use usleep() if we have it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/loop.c

    r1494 r1750  
    9292*/ 
    9393 
     94#ifdef ROAR_HAVE_USLEEP 
    9495  if ( g_standby || (streams < 1 && g_autostandby) ) { 
    9596   usleep((1000000 * ROAR_OUTPUT_BUFFER_SAMPLES) / sa->rate); 
    9697   ROAR_DBG("usleep(%u) = ?\n", (1000000 * ROAR_OUTPUT_BUFFER_SAMPLES) / sa->rate); 
    9798  } else { 
     99#endif 
    98100   clients_send_filter(sa, g_pos); 
    99101   output_buffer_flush(driver_inst, driver); 
    100102   clients_send_mon(sa, g_pos); 
     103#ifdef ROAR_HAVE_USLEEP 
    101104  } 
     105#endif 
    102106 
    103107  midi_cb_update(); 
Note: See TracChangeset for help on using the changeset viewer.