enable volume filter and fix nonsense default volume (still not usable

because mixer.c has no mechanism to pass volume commands to libaf)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7975 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2002-10-30 04:11:26 +00:00
parent 0df5aa5a35
commit e935c134ff
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ extern af_info_t af_info_delay;
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 @@ static af_info_t* filter_list[]={ \
&af_info_channels,\
&af_info_format,\
&af_info_resample,\
&af_info_volume,\
NULL \
};

View File

@ -206,7 +206,7 @@ static int open(af_instance_t* af){
// 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;
}