Changeset 1585:6072cefe7f97 in roaraudio


Ignore:
Timestamp:
04/15/09 17:48:22 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added flags: hwmixer (still meaning less, roard ignores this flag) and pause which pauses a stream

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/stream.h

    r1217 r1585  
    4949*/ 
    5050 
    51 #define ROAR_FLAG_NONE           0x00 
    52 #define ROAR_FLAG_PRIMARY        0x01 
    53 #define ROAR_FLAG_OUTPUT         0x02 
     51#define ROAR_FLAG_NONE           0x0000 
     52#define ROAR_FLAG_PRIMARY        0x0001 
     53#define ROAR_FLAG_OUTPUT         0x0002 
    5454#define ROAR_FLAG_DRIVER         ROAR_FLAG_OUTPUT 
    55 #define ROAR_FLAG_SOURCE         0x04 
    56 #define ROAR_FLAG_SYNC           0x08 
    57 #define ROAR_FLAG_META           0x10 
    58 #define ROAR_FLAG_AUTOCONF       0x20 
    59 #define ROAR_FLAG_CLEANMETA      0x40 
     55#define ROAR_FLAG_SOURCE         0x0004 
     56#define ROAR_FLAG_SYNC           0x0008 
     57#define ROAR_FLAG_META           0x0010 
     58#define ROAR_FLAG_AUTOCONF       0x0020 
     59#define ROAR_FLAG_CLEANMETA      0x0040 
     60#define ROAR_FLAG_HWMIXER        0x0080 
     61#define ROAR_FLAG_PAUSE          0x0100 
    6062//#define ROAR_FLAG_SYNC           0x08 
    6163 
  • roarclients/roarctl.c

    r1219 r1585  
    221221    if ( info.flags & ROAR_FLAG_CLEANMETA ) 
    222222     strcat(flags, "cleanmeta "); 
     223    if ( info.flags & ROAR_FLAG_HWMIXER ) 
     224     strcat(flags, "hwmixer "); 
     225    if ( info.flags & ROAR_FLAG_PAUSE ) 
     226     strcat(flags, "pause "); 
    223227 
    224228    printf("Flags                 : %s\n", flags); 
     
    547551  } else if ( !strcmp(c, "cleanmeta") ) { 
    548552   f |= ROAR_FLAG_CLEANMETA; 
     553  } else if ( !strcmp(c, "hwmixer") ) { 
     554   f |= ROAR_FLAG_HWMIXER; 
     555  } else if ( !strcmp(c, "pause") ) { 
     556   f |= ROAR_FLAG_PAUSE; 
    549557  } else { 
    550558   fprintf(stderr, "Error: unknown flag: %s\n", c); 
  • roard/streams.c

    r1498 r1585  
    327327 } 
    328328 
     329 if ( flag & ROAR_FLAG_HWMIXER ) { // currently not supported -> ignored 
     330  flag -= ROAR_FLAG_HWMIXER; 
     331 } 
     332 
    329333 g_streams[id]->flags |= flag; 
    330334 
     
    780784  return 0; 
    781785 
     786 if ( streams_get_flag(id, ROAR_FLAG_PAUSE) ) 
     787  return 0; 
     788 
    782789 ROAR_DBG("streams_check(id=%i): fh = %i", id, fh); 
    783790 
     
    872879  return 0; 
    873880 
     881 if ( streams_get_flag(id, ROAR_FLAG_PAUSE) ) 
     882  return 0; 
     883 
    874884 ROAR_DBG("streams_send_mon(id=%i): fh = %i", id, s->fh); 
    875885 
     
    973983  return 0; 
    974984 
     985 if ( streams_get_flag(id, ROAR_FLAG_PAUSE) ) 
     986  return 0; 
     987 
     988 
    975989 ROAR_DBG("streams_send_filter(id=%i): fh = %i", id, fh); 
    976990 
Note: See TracChangeset for help on using the changeset viewer.