Changeset 3213:da8251c98c0a in roaraudio for roard/streams.c


Ignore:
Timestamp:
01/24/10 05:41:59 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support to transpher mixer stream id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r3212 r3213  
    105105   s->outputbuffer    = NULL; 
    106106   s->prethru         = NULL; 
     107   s->mixer_stream    = -1; 
    107108 
    108109   s->mixer.scale     = 65535; 
     
    325326} 
    326327 
     328int streams_set_mixer_stream(int id, int mixer) { 
     329 struct roar_stream_server * ss; 
     330 
     331 _CHECK_SID(id); 
     332 
     333 if ( (ss = g_streams[id]) == NULL ) 
     334  return -1; 
     335 
     336 ss->mixer_stream = mixer; 
     337 
     338 return 0; 
     339} 
     340 
     341int streams_get_mixer_stream(int id, int mixer) { 
     342 struct roar_stream_server * ss; 
     343 
     344 _CHECK_SID(id); 
     345 
     346 if ( (ss = g_streams[id]) == NULL ) 
     347  return -1; 
     348 
     349 return ss->mixer_stream; 
     350} 
     351 
    327352int streams_get_subsys (int id) { 
    328353 struct roar_stream_server * ss; 
Note: See TracChangeset for help on using the changeset viewer.