Changeset 826:bab1cca7d75f in roaraudio for roard/streams.c


Ignore:
Timestamp:
09/22/08 21:01:59 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added experimental support for bidirectional streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r766 r826  
    498498 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
    499499  if ( g_streams[i] != NULL ) { 
    500    if ( ROAR_STREAM(g_streams[i])->dir != ROAR_DIR_PLAY ) 
     500   if ( ROAR_STREAM(g_streams[i])->dir != ROAR_DIR_PLAY && ROAR_STREAM(g_streams[i])->dir != ROAR_DIR_BIDIR ) 
    501501    continue; 
    502502 
     
    600600  return 0; 
    601601 
    602  if ( s->dir != ROAR_DIR_PLAY ) 
     602 if ( s->dir != ROAR_DIR_PLAY && s->dir != ROAR_DIR_BIDIR ) 
    603603  return 0; 
    604604 
     
    686686  return 0; 
    687687 
    688  if ( s->dir != ROAR_DIR_MONITOR && s->dir != ROAR_DIR_OUTPUT ) 
     688 if ( s->dir != ROAR_DIR_MONITOR && s->dir != ROAR_DIR_OUTPUT && s->dir != ROAR_DIR_BIDIR ) 
    689689  return 0; 
    690690 
Note: See TracChangeset for help on using the changeset viewer.