Changeset 4365:7502b11fcb8a in roaraudio


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

make things work

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/hwmixer.c

    r4363 r4365  
    153153} 
    154154 
     155int hwmixer_set_volume(int id, struct roar_stream_server * ss, struct hwmixer_stream * mstream, struct roar_mixer_settings * 
     156settings) { 
     157 if ( mstream->hwmixer->set_vol != NULL ) 
     158  return mstream->hwmixer->set_vol(mstream, ROAR_STREAM(ss)->info.channels, HWMIXER_MODE_SET, settings); 
     159 
     160 return 0; 
     161} 
     162 
    155163//ll 
  • roard/include/hwmixer.h

    r4363 r4365  
    2929#include <roaraudio.h> 
    3030 
     31#define HWMIXER_MODE_SET        1 
     32 
    3133struct hwmixer; 
    3234 
     
    4345int hwmixer_close(int stream); 
    4446 
     47int hwmixer_set_volume(int id, struct roar_stream_server * ss, struct hwmixer_stream * mstream, struct roar_mixer_settings * settings); 
     48 
    4549// Mixers: 
    4650 
  • roard/streams.c

    r4361 r4365  
    10001000  return 0; 
    10011001 
    1002  if ( ss->driver_id == -1 ) 
    1003   return 0; 
    1004  
    1005  return driver_set_volume(id, &(ss->mixer)); 
     1002 if ( ss->driver_id != -1 ) { 
     1003  return driver_set_volume(id, &(ss->mixer)); 
     1004 } else if ( ss->mixerstream != NULL ) { 
     1005  return hwmixer_set_volume(id, ss, ss->mixerstream, &(ss->mixer)); 
     1006 } else { 
     1007  return 0; 
     1008 } 
    10061009} 
    10071010 
Note: See TracChangeset for help on using the changeset viewer.