X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faudio_filter%2Fchannel_mixer%2Fheadphone.c;h=fa6ed618db7b71ab4f00c1f793810ceb94007b13;hb=ae2c9e4fb61cd0be61d160d1d0c6aae353706497;hp=00c85f60f33c0f1c4189c03ce021662f35779151;hpb=4518becb6e7022e9ba9a89b7c4c9385c5afd99b3;p=vlc diff --git a/modules/audio_filter/channel_mixer/headphone.c b/modules/audio_filter/channel_mixer/headphone.c index 00c85f60f3..fa6ed618db 100644 --- a/modules/audio_filter/channel_mixer/headphone.c +++ b/modules/audio_filter/channel_mixer/headphone.c @@ -85,7 +85,7 @@ vlc_module_begin () add_bool( "headphone-dolby", false, NULL, HEADPHONE_DOLBY_TEXT, HEADPHONE_DOLBY_LONGTEXT, true ) - set_capability( "audio filter2", 0 ) + set_capability( "audio filter", 0 ) set_callbacks( OpenFilter, CloseFilter ) add_shortcut( "headphone" ) vlc_module_end () @@ -189,7 +189,7 @@ static int Init( vlc_object_t *p_this, struct filter_sys_t * p_data , unsigned int i_nb_channels, uint32_t i_physical_channels , unsigned int i_rate ) { - double d_x = config_GetInt( p_this, "headphone-dim" ); + double d_x = var_InheritInteger( p_this, "headphone-dim" ); double d_z = d_x; double d_z_rear = -d_x/3; double d_min = 0; @@ -197,7 +197,7 @@ static int Init( vlc_object_t *p_this, struct filter_sys_t * p_data int i_source_channel_offset; unsigned int i; - if( config_GetInt( p_this, "headphone-compensate" ) ) + if( var_InheritBool( p_this, "headphone-compensate" ) ) { /* minimal distance to any speaker */ if( i_physical_channels & AOUT_CHAN_REARCENTER ) @@ -473,7 +473,7 @@ static int OpenFilter( vlc_object_t *p_this ) } if( p_filter->fmt_in.audio.i_physical_channels == (AOUT_CHAN_LEFT|AOUT_CHAN_RIGHT) && ( p_filter->fmt_in.audio.i_original_channels & AOUT_CHAN_DOLBYSTEREO ) - && !config_GetInt( p_filter, "headphone-dolby" ) ) + && !var_InheritBool( p_filter, "headphone-dolby" ) ) { b_fit = false; p_filter->fmt_in.audio.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT |