Changeset 1579:260e22c0d98c in roaraudio for libroarsndio


Ignore:
Timestamp:
04/13/09 14:53:48 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

get setting volume back working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/volume.c

    r1575 r1579  
    4444  return 0; 
    4545 
    46  mixer.scale   = SIO_MAXVOL; 
     46 mixer.scale   = 65535; 
    4747 mixer.rpg_mul = 1; 
    4848 mixer.rpg_div = 1; 
    4949 
    5050 for (i = 0; i < hdl->info.channels; i++) 
    51   mixer.mixer[i] = vol; 
     51  mixer.mixer[i] = vol*65535/SIO_MAXVOL; 
    5252 
    5353 if ( roar_set_vol(&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, hdl->info.channels) == -1 ) 
Note: See TracChangeset for help on using the changeset viewer.