Mercurial > mplayer.hg
comparison mixer.c @ 9633:12b1790038b0
64bit libao2 fix by Jens Axboe <mplayer-dev@kernel.dk>
author | alex |
---|---|
date | Fri, 21 Mar 2003 16:42:50 +0000 |
parents | da2dda48b7ec |
children | 6586ec1f6ee4 |
comparison
equal
deleted
inserted
replaced
9632:cf92beb331ab | 9633:12b1790038b0 |
---|---|
20 void mixer_getvolume( float *l,float *r ) | 20 void mixer_getvolume( float *l,float *r ) |
21 { | 21 { |
22 ao_control_vol_t vol; | 22 ao_control_vol_t vol; |
23 *l=0; *r=0; | 23 *l=0; *r=0; |
24 if(audio_out){ | 24 if(audio_out){ |
25 if(CONTROL_OK != audio_out->control(AOCONTROL_GET_VOLUME,(int)&vol)) | 25 if(CONTROL_OK != audio_out->control(AOCONTROL_GET_VOLUME,&vol)) |
26 return; | 26 return; |
27 *r=vol.right; | 27 *r=vol.right; |
28 *l=vol.left; | 28 *l=vol.left; |
29 } | 29 } |
30 } | 30 } |
32 void mixer_setvolume( float l,float r ) | 32 void mixer_setvolume( float l,float r ) |
33 { | 33 { |
34 ao_control_vol_t vol; | 34 ao_control_vol_t vol; |
35 vol.right=r; vol.left=l; | 35 vol.right=r; vol.left=l; |
36 if(audio_out){ | 36 if(audio_out){ |
37 if(CONTROL_OK != audio_out->control(AOCONTROL_SET_VOLUME,(int)&vol)) | 37 if(CONTROL_OK != audio_out->control(AOCONTROL_SET_VOLUME,&vol)) |
38 return; | 38 return; |
39 } | 39 } |
40 muted=0; | 40 muted=0; |
41 } | 41 } |
42 | 42 |