Changeset 2252:8860b2075ca5 in roaraudio for roard/light.c


Ignore:
Timestamp:
07/28/09 20:38:20 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

moved THRU stream support from individual stream types to the general read() for streams, let's see if it works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/light.c

    r2055 r2252  
    117117    } 
    118118//    memcpy(g_light_state.state, buf, g_light_state.channels < 512 ? g_light_state.channels : 512); 
    119  
    120     for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
    121      if ( g_streams[i] != NULL && ROAR_STREAM(g_streams[i])->pos_rel_id == id ) { 
    122       if ( ROAR_STREAM(g_streams[i])->dir == ROAR_DIR_THRU ) { 
    123        if ( stream_vio_write(i, buf, 512) != 512 ) { 
    124         streams_delete(i); 
    125        } 
    126       } 
    127      } 
    128     } 
    129119 
    130120    return 0; 
Note: See TracChangeset for help on using the changeset viewer.