Changeset 5995:2e6a8bef8f4f in roaraudio


Ignore:
Timestamp:
02/24/14 17:38:13 (5 years ago)
Author:
phi
Branch:
default
Message:

make the filter actually work ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/universal/filter-slfi-channel2event.c

    r5994 r5995  
    2828 
    2929#define FLAG_BLACKOUT   0x0001 
    30 #define FLAG_FULLON     0x0001 
     30#define FLAG_FULLON     0x0002 
    3131 
    3232struct slfi_channel2event { 
     
    9999 value = universe[self->channel]; 
    100100 if ( (self->flags & FLAG_BLACKOUT) && value == 0x00 ) { 
     101  if ( self->emitting & FLAG_FULLON ) { 
     102   roar_slfi_event_add(inst, ROAR_ROARDMX_EVENT_FULLON|ROAR_ROARDMX_ETYPE_OFF); 
     103   self->emitting -= FLAG_FULLON; 
     104  } 
    101105  if ( !(self->emitting & FLAG_BLACKOUT) ) { 
    102106   roar_slfi_event_add(inst, ROAR_ROARDMX_EVENT_BLACKOUT|ROAR_ROARDMX_ETYPE_ON); 
     
    104108  } 
    105109 } else if ( (self->flags & FLAG_FULLON) && value == 0xFF ) { 
     110  if ( self->emitting & FLAG_BLACKOUT ) { 
     111   roar_slfi_event_add(inst, ROAR_ROARDMX_EVENT_BLACKOUT|ROAR_ROARDMX_ETYPE_OFF); 
     112   self->emitting -= FLAG_BLACKOUT; 
     113  } 
    106114  if ( !(self->emitting & FLAG_FULLON) ) { 
    107115   roar_slfi_event_add(inst, ROAR_ROARDMX_EVENT_FULLON|ROAR_ROARDMX_ETYPE_ON); 
Note: See TracChangeset for help on using the changeset viewer.