mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 06:46:55 +00:00
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:
parent
0df5aa5a35
commit
e935c134ff
@ -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 \
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user