# HG changeset patch # User ivo # Date 1094509628 0 # Node ID aa13937da8a09a19856a591e8d8ead08bdaa1a09 # Parent 125f1b58a32589eb0bb29cd92a7ace6c4358a3f4 mplayer -af help now lists all available audio filters. Updated manual page. diff -r 125f1b58a325 -r aa13937da8a0 DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Mon Sep 06 21:26:46 2004 +0000 +++ b/DOCS/man/en/mplayer.1 Mon Sep 06 22:27:08 2004 +0000 @@ -2766,6 +2766,9 @@ .B \-af Activate a comma separated list of audio filters and their options. Also see the audio filters section of the documentation. +.br +.I NOTE: +To get a full list of available audio filters, see \-af help. .sp 1 Available filters are: .RSs diff -r 125f1b58a325 -r aa13937da8a0 libaf/af.c --- a/libaf/af.c Mon Sep 06 21:26:46 2004 +0000 +++ b/libaf/af.c Mon Sep 06 22:27:08 2004 +0000 @@ -610,3 +610,11 @@ return (res == AF_OK); } +void af_help (void) { + int i = 0; + while (filter_list[i]) { + af_msg(AF_MSG_INFO, " %-15s: %s\n", filter_list[i]->name, filter_list[i]->info); + i++; + } +} + diff -r 125f1b58a325 -r aa13937da8a0 libaf/af.h --- a/libaf/af.h Mon Sep 06 21:26:46 2004 +0000 +++ b/libaf/af.h Mon Sep 06 22:27:08 2004 +0000 @@ -205,6 +205,9 @@ /* Helper function for testing the output format */ int af_test_output(struct af_instance_s* af, af_data_t* out); +/** Print a list of all available audio filters */ +void af_help(void); + /* Memory reallocation macro: if a local buffer is used (i.e. if the filter doesn't operate on the incoming buffer this macro must be called to ensure the buffer is big enough. */ diff -r 125f1b58a325 -r aa13937da8a0 mplayer.c --- a/mplayer.c Mon Sep 06 21:26:46 2004 +0000 +++ b/mplayer.c Mon Sep 06 22:27:08 2004 +0000 @@ -950,6 +950,11 @@ printf("\n"); exit(0); } + if(af_cfg.list && strcmp(af_cfg.list[0],"help")==0){ + af_help(); + printf("\n"); + exit(0); + } #ifdef HAVE_X11 if(vo_fstype_list && strcmp(vo_fstype_list[0],"help")==0){ fstype_help();