Changeset 3630:89a9079f8e3f in roaraudio for roard/streams.c


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

implemented roles, still need some support to set them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r3557 r3630  
    107107   s->prethru         = NULL; 
    108108   s->mixer_stream    = -1; 
     109   s->role            = ROAR_ROLE_UNKNOWN; 
    109110 
    110111   s->mixer.scale     = 65535; 
     
    376377} 
    377378 
     379int streams_set_role   (int id, int role) { 
     380 struct roar_stream_server * ss; 
     381 
     382 _CHECK_SID(id); 
     383 
     384 if ( (ss = g_streams[id]) == NULL ) 
     385  return -1; 
     386 
     387 ss->role = role; 
     388 
     389 return 0; 
     390} 
     391 
    378392int streams_get_subsys (int id) { 
    379393 struct roar_stream_server * ss; 
Note: See TracChangeset for help on using the changeset viewer.