Changeset 3215:13678c1774be in roaraudio for roard
- Timestamp:
- 01/24/10 06:03:06 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/light.c
r2959 r3215 29 29 int light_init (unsigned int channels) { 30 30 struct roar_stream_server * ss; 31 int i; 31 32 32 33 g_light_state.channels = 0; … … 54 55 ROAR_STREAM(ss)->info.bits = ROAR_LIGHT_BITS; 55 56 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 } 56 65 57 66 return light_reset(); -
roard/midi.c
r2943 r3215 45 45 int midi_init (void) { 46 46 struct roar_stream_server * ss; 47 int i; 47 48 48 49 midi_config.inited = 0; … … 69 70 } 70 71 ss->state = ROAR_STREAMSTATE_OLD; 72 73 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 74 if ( g_streams[i] != NULL ) { 75 if ( streams_get_subsys(i) == ROAR_SUBSYS_MIDI ) { 76 streams_set_mixer_stream(i, g_midi_mixer.stream); 77 } 78 } 79 } 71 80 72 81 midi_config.inited |= MIDI_INITED_MAIN; -
roard/waveform.c
r2949 r3215 28 28 struct roar_stream_server * ss; 29 29 struct roar_stream * s; 30 int i; 30 31 31 32 if ( (g_waveform_mixer.stream = add_mixer(ROAR_SUBSYS_WAVEFORM, _MIXER_NAME("Waveform"), &ss)) == -1 ) … … 39 40 40 41 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 } 41 50 42 51 return 0;
Note: See TracChangeset
for help on using the changeset viewer.