Changeset 2458:8cbbb5330348 in roaraudio


Ignore:
Timestamp:
08/21/09 14:43:45 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

better form of check for dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2417 r2458  
    10761076 int i; 
    10771077 int have = 0; 
     1078 int dir; 
    10781079 
    10791080 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
    10801081  if ( g_streams[i] != NULL ) { 
    1081    if ( ROAR_STREAM(g_streams[i])->dir != ROAR_DIR_PLAY && ROAR_STREAM(g_streams[i])->dir != ROAR_DIR_BIDIR ) 
    1082     continue; 
     1082   dir = streams_get_dir(i); 
     1083 
     1084   switch (dir) { 
     1085    case ROAR_DIR_PLAY: 
     1086    case ROAR_DIR_BIDIR: 
     1087     break; 
     1088    default: 
     1089      continue; 
     1090   } 
    10831091 
    10841092   if ( streams_get_outputbuffer(i, &bufs[have], ROAR_OUTPUT_CALC_OUTBUFSIZE(info)) == -1 ) { 
Note: See TracChangeset for help on using the changeset viewer.