Changeset 3215:13678c1774be in roaraudio for roard/light.c


Ignore:
Timestamp:
01/24/10 06:03:06 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

reset mixer stream in case a mixer comes up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/light.c

    r2959 r3215  
    2929int light_init  (unsigned int channels) { 
    3030 struct roar_stream_server * ss; 
     31 int i; 
    3132 
    3233 g_light_state.channels = 0; 
     
    5455 ROAR_STREAM(ss)->info.bits  = ROAR_LIGHT_BITS; 
    5556 ROAR_STREAM(ss)->info.rate  = ROAR_OUTPUT_CFREQ; 
     57 
     58 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
     59  if ( g_streams[i] != NULL ) { 
     60   if ( streams_get_subsys(i) == ROAR_SUBSYS_LIGHT ) { 
     61    streams_set_mixer_stream(i, g_light_mixer.stream); 
     62   } 
     63  } 
     64 } 
    5665 
    5766 return light_reset(); 
Note: See TracChangeset for help on using the changeset viewer.