Changeset 1819:2604692f2a5b in roaraudio


Ignore:
Timestamp:
05/22/09 21:38:37 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

init and free light control subsystem

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/light.c

    r1818 r1819  
    2626 
    2727int light_init  (unsigned int channels) { 
     28 
     29 g_light_state.channels = 0; 
    2830 
    2931 if ( (g_light_state.state = malloc(channels)) == NULL ) { 
  • roard/roard.c

    r1787 r1819  
    339339 int    o_prim    = 0; 
    340340 int    o_count   = 0; 
     341 int    light_channels = 512; 
    341342 char * sock_grp  = ROAR_DEFAULT_SOCKGRP; 
    342343 char * sock_user = NULL; 
     
    661662 ROAR_DBG("Server config: rate=%i, bits=%i, chans=%i", sa.rate, sa.bits, sa.channels); 
    662663 
    663  if ( midi_init() == -1 ) 
     664 if ( midi_init() == -1 ) { 
    664665  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 } 
    665671 
    666672#ifdef ROAR_SUPPORT_LISTEN 
     
    892898 midi_cb_stop(); // stop console beep 
    893899 midi_free(); 
     900 light_free(); 
    894901} 
    895902 
Note: See TracChangeset for help on using the changeset viewer.