Changeset 3411:fe6bc2bdebc2 in roaraudio for libroarpulse/context.c


Ignore:
Timestamp:
02/11/10 17:11:08 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for a virtual default sink and source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/context.c

    r3406 r3411  
    265265 
    266266 if ( cb != NULL ) 
    267   cb(c, 0, userdata); 
     267  cb(c, strcasecmp(name, ROAR_PA_DEFAULT_SINK) == 0 ? 1 : 0, userdata); 
    268268 
    269269 return roar_pa_operation_new(PA_OPERATION_DONE); 
     
    276276 
    277277 if ( cb != NULL ) 
    278   cb(c, 0, userdata); 
     278  cb(c, strcasecmp(name, ROAR_PA_DEFAULT_SOURCE) == 0 ? 1 : 0, userdata); 
    279279 
    280280 return roar_pa_operation_new(PA_OPERATION_DONE); 
Note: See TracChangeset for help on using the changeset viewer.