Changeset 920:ce0dc2fbe8e2 in roaraudio
- Timestamp:
- 12/07/08 00:22:55 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/roard.h
r905 r920 63 63 64 64 int g_standby; 65 int g_autostandby; 65 66 66 67 int main_loop (int driver, DRIVER_USERDATA_T driver_inst, struct roar_audio_info * sa, int sysclocksync); -
roard/loop.c
r906 r920 82 82 */ 83 83 84 if ( g_standby ) {84 if ( g_standby || (streams < 1 && g_autostandby) ) { 85 85 usleep((1000000 * ROAR_OUTPUT_BUFFER_SAMPLES) / sa->rate); 86 86 ROAR_DBG("usleep(%u) = ?\n", (1000000 * ROAR_OUTPUT_BUFFER_SAMPLES) / sa->rate); -
roard/roard.c
r905 r920 91 91 " --client-fh - Comunicate with a client over this handle\n" 92 92 " (only usefull for relaing)\n" 93 " --close-fh - Closes the given fh\n", 93 " --close-fh - Closes the given fh\n" 94 " --standby - Start in standby state\n" 95 " --auto-standby - Automatical goes into standby if there are no streams\n", 94 96 ROAR_DEFAULT_SOCKGRP 95 97 ); … … 148 150 g_listen_socket = -1; 149 151 g_standby = 0; 152 g_autostandby = 0; 150 153 151 154 sa.bits = ROAR_BITS_DEFAULT; … … 325 328 close(atoi(argv[++i])); 326 329 330 } else if ( strcmp(k, "--standby") == 0 ) { 331 g_standby = 1; 332 } else if ( strcmp(k, "--auto-standby") == 0 ) { 333 g_autostandby = 1; 327 334 } else { 328 335 usage();
Note: See TracChangeset
for help on using the changeset viewer.