Changeset 3215:13678c1774be in roaraudio for roard/waveform.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/waveform.c

    r2949 r3215  
    2828 struct roar_stream_server * ss; 
    2929 struct roar_stream        *  s; 
     30 int                          i; 
    3031 
    3132 if ( (g_waveform_mixer.stream = add_mixer(ROAR_SUBSYS_WAVEFORM, _MIXER_NAME("Waveform"), &ss)) == -1 ) 
     
    3940 
    4041 ss->state = ROAR_STREAMSTATE_OLD; 
     42 
     43 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 
     44  if ( g_streams[i] != NULL ) { 
     45   if ( streams_get_subsys(i) == ROAR_SUBSYS_WAVEFORM ) { 
     46    streams_set_mixer_stream(i, g_waveform_mixer.stream); 
     47   } 
     48  } 
     49 } 
    4150 
    4251 return 0; 
Note: See TracChangeset for help on using the changeset viewer.