Changeset 4361:135e78128e19 in roaraudio for roard/streams.c


Ignore:
Timestamp:
09/14/10 17:02:58 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added very basic mixer setup rutines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r4346 r4361  
    150150   s->flags     =  ROAR_FLAG_NONE; 
    151151 
     152   s->mixerstream =  NULL; 
     153 
    152154   //roardsp_fchain_init(&(s->fc)); 
    153155 
     
    251253  s->driver_id = -1; 
    252254  no_vio_close =  1; 
     255 } 
     256 
     257 if ( s->mixerstream != NULL ) { 
     258  hwmixer_close(id); 
    253259 } 
    254260 
     
    11981204} 
    11991205 
     1206struct hwmixer_stream * streams_get_mixerstream(int id) { 
     1207 _CHECK_SID_RET(id, NULL); 
     1208 
     1209 return g_streams[id]->mixerstream; 
     1210} 
     1211 
     1212int streams_set_mixerstream(int id, struct hwmixer_stream * mstream) { 
     1213 _CHECK_SID(id); 
     1214 
     1215 g_streams[id]->mixerstream = mstream; 
     1216 
     1217 return 0; 
     1218} 
     1219 
    12001220 
    12011221int streams_ctl          (int id, int_least32_t cmd, void * data) { 
Note: See TracChangeset for help on using the changeset viewer.