Mercurial > mplayer.hg
changeset 7974:db1f16543379
enable volume filter and fix nonsense default volume (still not usable
because mixer.c has no mechanism to pass volume commands to libaf)
author | rfelker |
---|---|
date | Wed, 30 Oct 2002 04:11:26 +0000 |
parents | ade6eb7abc2a |
children | 6e03baea602f |
files | libaf/af.c libaf/af_volume.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libaf/af.c Wed Oct 30 01:59:51 2002 +0000 +++ b/libaf/af.c Wed Oct 30 04:11:26 2002 +0000 @@ -17,6 +17,7 @@ extern af_info_t af_info_channels; extern af_info_t af_info_format; extern af_info_t af_info_resample; +extern af_info_t af_info_volume; static af_info_t* filter_list[]={ \ &af_info_dummy,\ @@ -24,6 +25,7 @@ &af_info_channels,\ &af_info_format,\ &af_info_resample,\ + &af_info_volume,\ NULL \ };
--- a/libaf/af_volume.c Wed Oct 30 01:59:51 2002 +0000 +++ b/libaf/af_volume.c Wed Oct 30 04:11:26 2002 +0000 @@ -206,7 +206,7 @@ // Enable volume control and set initial volume to 0.1 ((af_volume_t*)af->setup)->onoff = 1; for(i=0;i<NCH;i++) - ((af_volume_t*)af->setup)->volume[i]=0.1; + ((af_volume_t*)af->setup)->volume[i]=1.0; //0.1; return AF_OK; }