Changeset 1750:e1745c2a2f8c in roaraudio


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

Location:
roard
Files:
2 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(); 
  • roard/streams.c

    r1613 r1750  
    10001000  // make any gapes in any output because of this 
    10011001 
     1002#ifdef ROAR_HAVE_USLEEP 
    10021003  usleep(100); // 0.1ms 
     1004#endif 
    10031005 
    10041006  if ( stream_vio_s_write(ss, obuf, olen) == olen ) { 
Note: See TracChangeset for help on using the changeset viewer.