Changeset 1750:e1745c2a2f8c in roaraudio
- Timestamp:
- 05/18/09 21:45:19 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/loop.c
r1494 r1750 92 92 */ 93 93 94 #ifdef ROAR_HAVE_USLEEP 94 95 if ( g_standby || (streams < 1 && g_autostandby) ) { 95 96 usleep((1000000 * ROAR_OUTPUT_BUFFER_SAMPLES) / sa->rate); 96 97 ROAR_DBG("usleep(%u) = ?\n", (1000000 * ROAR_OUTPUT_BUFFER_SAMPLES) / sa->rate); 97 98 } else { 99 #endif 98 100 clients_send_filter(sa, g_pos); 99 101 output_buffer_flush(driver_inst, driver); 100 102 clients_send_mon(sa, g_pos); 103 #ifdef ROAR_HAVE_USLEEP 101 104 } 105 #endif 102 106 103 107 midi_cb_update(); -
roard/streams.c
r1613 r1750 1000 1000 // make any gapes in any output because of this 1001 1001 1002 #ifdef ROAR_HAVE_USLEEP 1002 1003 usleep(100); // 0.1ms 1004 #endif 1003 1005 1004 1006 if ( stream_vio_s_write(ss, obuf, olen) == olen ) {
Note: See TracChangeset
for help on using the changeset viewer.