diff options
author | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-06 22:27:08 +0000 |
---|---|---|
committer | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-06 22:27:08 +0000 |
commit | bdc25d636e1452f787c748a1fba8da17d1c30b92 (patch) | |
tree | 79a566f91065a4c6ca70bc0eff82863abe1ac09d /libaf | |
parent | 2fa8fe4ad37a22bd6b7a41e4e456c33e529372dd (diff) | |
download | mpv-bdc25d636e1452f787c748a1fba8da17d1c30b92.tar.bz2 mpv-bdc25d636e1452f787c748a1fba8da17d1c30b92.tar.xz |
mplayer -af help now lists all available audio filters.
Updated manual page.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13270 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf')
-rw-r--r-- | libaf/af.c | 8 | ||||
-rw-r--r-- | libaf/af.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libaf/af.c b/libaf/af.c index 10ee1660bb..5728095ab3 100644 --- a/libaf/af.c +++ b/libaf/af.c @@ -610,3 +610,11 @@ int af_control_any_rev (af_stream_t* s, int cmd, void* arg) { 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 --git a/libaf/af.h b/libaf/af.h index 003412d504..05e277d58c 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -205,6 +205,9 @@ int af_to_ms(int n, int* in, float* out, int rate); /* 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. */ |