Changeset 1838:416e81b73dbc in roaraudio


Ignore:
Timestamp:
05/23/09 02:48:08 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for THRU streams with src on a DMX512 stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/light.c

    r1823 r1838  
    6868 struct roar_stream_server *  ss; 
    6969 char buf[512]; 
     70 int i; 
    7071 
    7172 if ( g_streams[id] == NULL ) 
     
    8485 
    8586    memcpy(g_light_state.state, buf, g_light_state.channels < 512 ? g_light_state.channels : 512); 
     87 
     88    for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
     89     if ( g_streams[i] != NULL && ROAR_STREAM(g_streams[i])->pos_rel_id == id ) { 
     90      if ( ROAR_STREAM(g_streams[i])->dir == ROAR_DIR_THRU ) { 
     91       if ( stream_vio_write(i, buf, 512) != 512 ) { 
     92        streams_delete(i); 
     93       } 
     94      } 
     95     } 
     96    } 
    8697 
    8798    return 0; 
Note: See TracChangeset for help on using the changeset viewer.