Changeset 2497:d0fe5199c988 in roaraudio


Ignore:
Timestamp:
08/24/09 02:26:59 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

handle streams of dir MIDI_*, LIGHT_* and RAW_* a bit better in case subsystem is disabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r2402 r2497  
    124124  case ROAR_DIR_LIGHT_IN: 
    125125  case ROAR_DIR_LIGHT_OUT: 
     126#ifndef ROAR_WITHOUT_DCOMP_LIGHT 
    126127    info = &(ROAR_STREAM(s)->info); 
    127128 
     
    129130    info->bits     = 0; 
    130131    info->rate     = 0; 
     132#else 
     133    streams_delete(stream); 
     134    return -1; 
     135#endif 
    131136 
    132137   break; 
    133138  case ROAR_DIR_MIDI_IN: 
    134139  case ROAR_DIR_MIDI_OUT: 
     140#ifndef ROAR_WITHOUT_DCOMP_MIDI 
    135141    info = &(ROAR_STREAM(s)->info); 
    136142 
     
    138144    info->bits     = ROAR_MIDI_BITS; 
    139145    info->rate     = 0; 
     146#else 
     147    streams_delete(stream); 
     148    return -1; 
     149#endif 
    140150 
    141151   break; 
    142152 
    143153  case ROAR_DIR_RAW_IN: 
     154#ifndef ROAR_WITHOUT_DCOMP_RAW 
    144155    if ( ROAR_STREAM(s)->pos_rel_id == -1     || 
    145156         ROAR_STREAM(s)->pos_rel_id == stream || 
     
    151162     return -1; 
    152163    } 
     164#else 
     165  case ROAR_DIR_RAW_OUT: 
     166    streams_delete(stream); 
     167    return -1; 
     168#endif 
    153169 
    154170   break; 
Note: See TracChangeset for help on using the changeset viewer.