Changeset 826:bab1cca7d75f in roaraudio


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

added experimental support for bidirectional streams

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/stream.h

    r773 r826  
    4040#define roar_dir2str(x)   ((x) == ROAR_DIR_PLAY   ? "play"   : (x) == ROAR_DIR_MONITOR ? "monitor" : \ 
    4141                           (x) == ROAR_DIR_FILTER ? "filter" : (x) == ROAR_DIR_RECORD  ? "record"  : \ 
    42                            (x) == ROAR_DIR_OUTPUT ? "output" : "unknown") 
     42                           (x) == ROAR_DIR_OUTPUT ? "output" : (x) == ROAR_DIR_BIDIR   ? "bidir"   : \ 
     43                           "unknown") 
    4344/* 
    4445#define roar_codec2str(x) ((x) == ROAR_CODEC_PCM_S_LE  ? "pcm_s_le"  : (x) == ROAR_CODEC_PCM_S_BE  ? "pcm_s_be"  : \ 
  • include/roaraudio/stream.h

    r704 r826  
    4242 
    4343#define ROAR_DIR_META     8 
     44#define ROAR_DIR_BIDIR    9 
    4445 
    4546 
  • roarclients/Makefile

    r800 r826  
    1 TARGETS=roarcat roarcatad roarcat2sock roarcatsendfile roarcatplay roarcatpassfh roarctl roarmon roarsockconnect roartypes roarvorbis roarvumeter roarfilt roarsin roar-config polytest roarsocktypes roarshout roarradio 
     1TARGETS=roarcat roarcatad roarcat2sock roarcatsendfile roarcatplay roarcatpassfh roarbidir roarctl roarmon roarsockconnect roartypes roarvorbis roarvumeter roarfilt roarsin roar-config polytest roarsocktypes roarshout roarradio 
    22 
    33include ../Makefile.conf 
     
    2323roarctl: roarctl.o 
    2424roarmon: roarmon.o 
     25roarbidir: roarbidir.o 
    2526roarfilt: roarfilt.o 
    2627        ${CC} ${LDFLAGS} -o roarfilt roarfilt.o -lm -lroardsp 
  • 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.