Changeset 17:411717cefded in roaraudio for libroaresd


Ignore:
Timestamp:
06/19/08 22:51:13 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

now we can change the volume, but it will not work if you set it... haha...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaresd/esdctl.c

    r0 r17  
    277277int esd_set_stream_pan( int esd, int stream_id, 
    278278                        int left_scale, int right_scale ) { 
    279  return -1; 
     279 struct roar_connection con; 
     280 struct roar_mixer_settings mixer; 
     281 
     282 con.fh = esd; 
     283 
     284 mixer.mixer[0] = left_scale; 
     285 mixer.mixer[1] = right_scale; 
     286 
     287 ROAR_DBG("esd_set_stream_pan(esd=%i, stream_id=%i, left_scale=%i, right_scale=%i) = ?",  
     288                esd, stream_id, left_scale, right_scale); 
     289 
     290 return roar_set_vol(&con, stream_id, &mixer, 2); 
    280291} 
    281292 
Note: See TracChangeset for help on using the changeset viewer.