Changeset 5937:99bf6b3b3ebe in roaraudio


Ignore:
Timestamp:
09/12/13 05:17:10 (6 years ago)
Author:
phi
Branch:
default
Message:

get the strobe plugin working correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/dmx-strobe.c

    r5936 r5937  
    5151#define __set_XXX(type) \ 
    5252static void __set_##type (uint8_t val) { \ 
     53 ROAR_DBG("__set_%s(val=%i): channel=%li", #type, val, (long int)g_state->channel_##type); \ 
    5354 if ( g_state->channel_##type != -1 ) \ 
    5455  light_dmxchannel_set(g_state->channel_##type, val); \ 
     
    111112 
    112113static void cb_event(struct roar_notify_core * core, struct roar_event * event, void * userdata) { 
     114 struct state * old = g_state; 
     115 
    113116 (void)core, (void)userdata; 
     117 
     118 g_state = userdata; 
     119 
    114120 __handle_event(event->arg0); 
     121 
     122 g_state = old; 
    115123} 
    116124 
     
    127135 event.target_type = ROAR_OT_STREAM; 
    128136 
    129  g_state->subscription_event = roar_notify_core_subscribe(NULL, &event, cb_event, NULL); 
     137 g_state->subscription_event = roar_notify_core_subscribe(NULL, &event, cb_event, g_state); 
    130138 
    131139 return 0; 
Note: See TracChangeset for help on using the changeset viewer.