+
+ return VLC_SUCCESS;
+}
+
+/*****************************************************************************
+ * aout_ChannelsRestart : change the audio device or channels and restart
+ *****************************************************************************/
+int aout_ChannelsRestart( vlc_object_t * p_this, const char * psz_variable,
+ vlc_value_t oldval, vlc_value_t newval,
+ void *p_data )
+{
+ aout_instance_t * p_aout = (aout_instance_t *)p_this;
+ (void)oldval; (void)newval; (void)p_data;
+
+ if ( !strcmp( psz_variable, "audio-device" ) )
+ {
+ /* This is supposed to be a significant change and supposes
+ * rebuilding the channel choices. */
+ var_Destroy( p_aout, "audio-channels" );
+ }
+ aout_Restart( p_aout );
+ return 0;
+}
+
+#undef aout_EnableFilter
+/** Enable or disable an audio filter
+ * \param p_this a vlc object
+ * \param psz_name name of the filter
+ * \param b_add are we adding or removing the filter ?
+ */
+void aout_EnableFilter( vlc_object_t *p_this, const char *psz_name,
+ bool b_add )
+{
+ aout_instance_t *p_aout = findAout( p_this );
+
+ if( AoutChangeFilterString( p_this, p_aout, "audio-filter", psz_name, b_add ) )
+ {
+ if( p_aout )
+ AoutInputsMarkToRestart( p_aout );
+ }
+
+ if( p_aout )
+ vlc_object_release( p_aout );