Changeset 2273:6793c3df45af in roaraudio


Ignore:
Timestamp:
08/04/09 13:09:15 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a stub function to open a source via the new interface

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/sources.h

    r2270 r2273  
    5252int sources_add (char * driver, char * device, char * container, char * options, int primary); 
    5353 
     54int sources_add_new (struct roar_source * source, 
     55                     char * driver, char * device, 
     56                     char * container, 
     57                     char * options, int primary); 
     58 
    5459int sources_add_raw  (char * driver, char * device, char * container, char * options, int primary); 
    5560int sources_add_wav  (char * driver, char * device, char * container, char * options, int primary); 
  • roard/sources.c

    r2272 r2273  
    9090  if ( !strcmp(g_source[i].name, driver) ) { 
    9191   if ( g_source[i].new_open != NULL ) { 
    92     // TODO: add code to open driver here... 
     92    return sources_add_new(&(g_source[i]), driver, device, container, options, primary); 
    9393   } else if ( g_source[i].old_open != NULL ) { 
    9494    return g_source[i].old_open(driver, device, container, options, primary); 
     
    101101 
    102102 ROAR_ERR("sources_add(driver='%s', ...): Source not found", driver); 
     103 return -1; 
     104} 
     105 
     106int sources_add_new (struct roar_source * source, 
     107                     char * driver, char * device, 
     108                     char * container, 
     109                     char * options, int primary) { 
    103110 return -1; 
    104111} 
Note: See TracChangeset for help on using the changeset viewer.