Changeset 3411:fe6bc2bdebc2 in roaraudio for libroarpulse


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

added support for a virtual default sink and source

Location:
libroarpulse
Files:
2 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); 
  • libroarpulse/introspect.c

    r3409 r3411  
    8181 painfo.server_version      = pa_get_library_version(); 
    8282 painfo.server_name         = "pulseaudio"; 
    83  painfo.default_sink_name   = NULL; 
    84  painfo.default_source_name = NULL; 
     83 painfo.default_sink_name   = ROAR_PA_DEFAULT_SINK; 
     84 painfo.default_source_name = ROAR_PA_DEFAULT_SOURCE; 
    8585 painfo.cookie              = 0x524F4152; 
    8686 painfo.cookie             ^= (client.pid & 0xFF) | (client.uid & 0xFF) << 8 | (client.gid & 0xFF) << 16; 
Note: See TracChangeset for help on using the changeset viewer.