/*****************************************************************************
* visual.c : Visualisation system
*****************************************************************************
- * Copyright (C) 2002-2006 the VideoLAN team
+ * Copyright (C) 2002-2009 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@via.ecp.fr>
#define ELIST_TEXT N_( "Effects list" )
#define ELIST_LONGTEXT N_( \
"A list of visual effect, separated by commas.\n" \
- "Current effects include: dummy, scope, spectrum." )
+ "Current effects include: dummy, scope, spectrum, "\
+ "spectrometer and vuMeter." )
#define WIDTH_TEXT N_( "Video width" )
#define WIDTH_LONGTEXT N_( \
HEIGHT_TEXT, HEIGHT_LONGTEXT, false )
set_section( N_("Spectrum analyser") , NULL )
add_obsolete_integer( "visual-nbbands" ) /* Since 1.0.0 */
- add_bool("visual-80-bands", 1, NULL,
+ add_bool("visual-80-bands", true, NULL,
NBBANDS_TEXT, NBBANDS_LONGTEXT, true );
add_obsolete_integer( "visual-separ" ) /* Since 1.0.0 */
add_obsolete_integer( "visual-amp" ) /* Since 1.0.0 */
add_bool("spect-show-bands", true, NULL,
BANDS_TEXT, BANDS_LONGTEXT, true );
add_obsolete_integer( "spect-nbbands" ) /* Since 1.0.0 */
- add_bool("spect-80-bands", 1, NULL,
+ add_bool("spect-80-bands", true, NULL,
NBBANDS_TEXT, SPNBBANDS_LONGTEXT, true )
add_integer("spect-separ", 1, NULL,
SEPAR_TEXT, SEPAR_LONGTEXT, true )
aout_buffer_t *, picture_t *);
} pf_effect_run[]=
{
- { "scope", scope_Run },
- { "vuMeter", vuMeter_Run },
- { "spectrum", spectrum_Run },
- { "spectrometer", spectrometer_Run },
- { "dummy", dummy_Run},
- { NULL, dummy_Run}
+ { "scope", scope_Run },
+ { "vuMeter", vuMeter_Run },
+ { "spectrum", spectrum_Run },
+ { "spectrometer", spectrometer_Run },
+ { "dummy", dummy_Run},
+ { NULL, dummy_Run}
};
/*****************************************************************************
p_effect->i_width = p_sys->i_width;
p_effect->i_height= p_sys->i_height;
p_effect->i_nb_chans = aout_FormatNbChannels( &p_filter->input);
+ p_effect->i_idx_left = 0;
+ p_effect->i_idx_right = __MIN( 1, p_effect->i_nb_chans-1 );
+
p_effect->psz_args = NULL;
p_effect->p_data = NULL;
strlen( pf_effect_run[i].psz_name ) ) )
{
p_effect->pf_run = pf_effect_run[i].pf_run;
- p_effect->psz_name = strdup( pf_effect_run[i].psz_name );
+ p_effect->psz_name = pf_effect_run[i].psz_name;
break;
}
}
if( ( psz_eoa = strchr( psz_parser, '}') ) == NULL )
{
msg_Err( p_filter, "unable to parse effect list. Aborting");
- free( p_effect->psz_name );
free( p_effect );
break;
}
msg_Err( p_filter, "no suitable vout module" );
for( int i = 0; i < p_sys->i_effect; i++ )
{
- free( p_sys->effect[i]->psz_name );
free( p_sys->effect[i]->psz_args );
free( p_sys->effect[i] );
}
free( ( ( spectrum_data * )p_effect->p_data )->prev_heights );
}
free( p_effect->p_data );
- free( p_effect->psz_name );
free( p_effect->psz_args );
free( p_effect );
#undef p_effect