- p_aout->output.p_sys->b_add_wav_header =
- config_GetInt( p_this, "audiofile-wav" );
+ /* Channels number */
+ var_Create( p_this, "audiofile-channels",
+ VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
+ var_Get( p_this, "audiofile-channels", &val );
+ i_channels = val.i_int;
+
+ if( i_channels > 0 && i_channels <= CHANNELS_MAX )
+ {
+ p_aout->output.output.i_physical_channels =
+ pi_channels_maps[i_channels];
+ }
+
+ /* WAV header */
+ var_Create( p_this, "audiofile-wav", VLC_VAR_BOOL|VLC_VAR_DOINHERIT );
+ var_Get( p_this, "audiofile-wav", &val );
+ p_aout->output.p_sys->b_add_wav_header = val.b_bool;