Changeset 1819:2604692f2a5b in roaraudio for roard/roard.c


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

init and free light control subsystem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.