Changeset 1819:2604692f2a5b in roaraudio
- Timestamp:
- 05/22/09 21:38:37 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/light.c
r1818 r1819 26 26 27 27 int light_init (unsigned int channels) { 28 29 g_light_state.channels = 0; 28 30 29 31 if ( (g_light_state.state = malloc(channels)) == NULL ) { -
roard/roard.c
r1787 r1819 339 339 int o_prim = 0; 340 340 int o_count = 0; 341 int light_channels = 512; 341 342 char * sock_grp = ROAR_DEFAULT_SOCKGRP; 342 343 char * sock_user = NULL; … … 661 662 ROAR_DBG("Server config: rate=%i, bits=%i, chans=%i", sa.rate, sa.bits, sa.channels); 662 663 663 if ( midi_init() == -1 ) 664 if ( midi_init() == -1 ) { 664 665 ROAR_ERR("Can not initialize MIDI subsystem"); 666 } 667 668 if ( light_init(light_channels) == -1 ) { 669 ROAR_ERR("Can not initialize light control subsystem"); 670 } 665 671 666 672 #ifdef ROAR_SUPPORT_LISTEN … … 892 898 midi_cb_stop(); // stop console beep 893 899 midi_free(); 900 light_free(); 894 901 } 895 902
Note: See TracChangeset
for help on using the changeset viewer.