Changeset 2959:ab1eb289d3d4 in roaraudio
- Timestamp:
- 10/17/09 09:51:39 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/light.c
r2944 r2959 28 28 29 29 int light_init (unsigned int channels) { 30 struct roar_stream_server * ss; 30 31 31 32 g_light_state.channels = 0; … … 45 46 g_light_state.channels = channels; 46 47 47 if ( (g_light_mixer.stream = add_mixer(ROAR_SUBSYS_LIGHT, _MIXER_NAME("Light Control"), NULL)) == -1 ) {48 if ( (g_light_mixer.stream = add_mixer(ROAR_SUBSYS_LIGHT, _MIXER_NAME("Light Control"), &ss)) == -1 ) { 48 49 free(g_light_state.state); 49 50 return -1; 50 51 } 52 53 ROAR_STREAM(ss)->info.codec = ROAR_CODEC_DMX512; 54 ROAR_STREAM(ss)->info.bits = ROAR_LIGHT_BITS; 55 ROAR_STREAM(ss)->info.rate = ROAR_OUTPUT_CFREQ; 51 56 52 57 return light_reset();
Note: See TracChangeset
for help on using the changeset viewer.