Changeset 4379:5861284631eb in roaraudio for roard/streams.c


Ignore:
Timestamp:
09/14/10 22:16:53 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

support reading volumes at startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r4365 r4379  
    12211221} 
    12221222 
     1223int streams_read_mixervalues(int id) { 
     1224 struct roar_stream_server * ss; 
     1225 
     1226 _CHECK_SID(id); 
     1227 
     1228 if ( (ss = g_streams[id]) == NULL ) 
     1229  return -1; 
     1230 
     1231 if ( ss->mixerstream == NULL ) 
     1232  return -1; 
     1233 
     1234 return hwmixer_get_volume(id, ss, ss->mixerstream, &(ss->mixer)); 
     1235} 
    12231236 
    12241237int streams_ctl          (int id, int_least32_t cmd, void * data) { 
Note: See TracChangeset for help on using the changeset viewer.