Changeset 1711:821402880d74 in roaraudio


Ignore:
Timestamp:
05/14/09 16:34:57 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

moved sio_onvol() from libroarsndio.c to volume.c

Location:
libroarsndio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroarsndio/libroarsndio.c

    r1573 r1711  
    8484} 
    8585 
    86 void   sio_onvol  (struct sio_hdl * hdl, void (*cb)(void * arg, unsigned vol), void * arg) { 
    87  if ( hdl == NULL ) 
    88   return; 
    89  
    90  hdl->on_vol     = cb; 
    91  hdl->on_vol_arg = arg; 
    92 } 
    93  
    9486//ll 
  • libroarsndio/volume.c

    r1579 r1711  
    6060} 
    6161 
     62void   sio_onvol  (struct sio_hdl * hdl, void (*cb)(void * arg, unsigned vol), void * arg) { 
     63 if ( hdl == NULL ) 
     64  return; 
     65 
     66 hdl->on_vol     = cb; 
     67 hdl->on_vol_arg = arg; 
     68} 
     69 
    6270//ll 
Note: See TracChangeset for help on using the changeset viewer.