Changeset 5235:f6772d7182e8 in roaraudio for libroarsndio


Ignore:
Timestamp:
11/12/11 16:33:39 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use newer API functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/volume.c

    r4708 r5235  
    6464 mixer.rpg_mul = 1; 
    6565 mixer.rpg_div = 1; 
     66 mixer.mixer[0] = vol; 
     67 
     68 if ( roar_set_vol2(&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, 0, ROAR_SET_VOL_UNMAPPED) == -1 ) 
     69  return 0; 
    6670 
    6771 for (i = 0; i < hdl->info.channels; i++) 
    6872  mixer.mixer[i] = vol; 
    6973 
    70  if ( roar_set_vol(&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, hdl->info.channels) == -1 ) 
     74 if ( roar_set_vol2(&(hdl->con), roar_stream_get_id(&(hdl->stream)), &mixer, hdl->info.channels, ROAR_SET_VOL_ALL) == -1 ) 
    7175  return 0; 
    7276 
Note: See TracChangeset for help on using the changeset viewer.