Changeset 1221:8ab0332cd92b in roaraudio


Ignore:
Timestamp:
02/25/09 00:02:59 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for flag primary as -oO flag, for flag cleanmeta, dummy for flag autoconf and way to set number of blocks (bot not blocksize...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r1208 r1221  
    134134 int codec; 
    135135 int sync = 0; 
     136 int32_t blocks = -1; 
    136137 
    137138 ROAR_DBG("add_output(drv='%s', dev='%s', opts='%s') = ?", drv, dev, opts); 
     
    192193    return -1; 
    193194   } 
     195  } else if ( strcmp(k, "blocks") == 0 ) { 
     196   blocks = atoi(v); 
    194197  } else if ( strcmp(k, "meta") == 0 ) { 
    195198   streams_set_flag(stream, ROAR_FLAG_META); 
    196199  } else if ( strcmp(k, "sync") == 0 ) { 
    197200   sync = 1; 
     201  } else if ( strcmp(k, "primary") == 0 ) { 
     202   prim = 1; 
     203 
     204  } else if ( strcmp(k, "cleanmeta") == 0 ) { 
     205   streams_set_flag(stream, ROAR_FLAG_CLEANMETA); 
     206 
     207  /* ignore this for the moment ... */ 
     208  } else if ( strcmp(k, "autoconf") == 0 ) { 
    198209  } else { 
    199210   ROAR_ERR("add_output(*): unknown option '%s'", k); 
     
    227238  return -1; 
    228239 } 
     240 
     241 if ( blocks != -1 ) 
     242  roar_vio_ctl(&(ss->vio), ROAR_VIO_CTL_SET_DBLOCKS, &blocks); 
    229243 
    230244 ROAR_DBG("add_output(*): ss->driver_id=%i", ss->driver_id); 
Note: See TracChangeset for help on using the changeset viewer.