[pulseaudio-commits] r1722 - in /branches/lennart/src/daemon: cmdline.c daemon-conf.h main.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Aug 25 16:49:12 PDT 2007
Author: lennart
Date: Sun Aug 26 01:49:11 2007
New Revision: 1722
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1722&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Add option --dump-resample-methods to list available resampler implementati=
ons
Modified:
branches/lennart/src/daemon/cmdline.c
branches/lennart/src/daemon/daemon-conf.h
branches/lennart/src/daemon/main.c
Modified: branches/lennart/src/daemon/cmdline.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/daemon/cmd=
line.c?rev=3D1722&root=3Dpulseaudio&r1=3D1721&r2=3D1722&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/daemon/cmdline.c (original)
+++ branches/lennart/src/daemon/cmdline.c Sun Aug 26 01:49:11 2007
@@ -63,6 +63,7 @@
ARG_CHECK,
ARG_NO_CPU_LIMIT,
ARG_DISABLE_SHM,
+ ARG_DUMP_RESAMPLE_METHODS,
ARG_SYSTEM
};
=
@@ -92,6 +93,7 @@
{"system", 2, 0, ARG_SYSTEM},
{"no-cpu-limit", 2, 0, ARG_NO_CPU_LIMIT},
{"disable-shm", 2, 0, ARG_DISABLE_SHM},
+ {"dump-resample-methods", 2, 0, ARG_DUMP_RESAMPLE_METHODS},
{NULL, 0, 0, 0}
};
=
@@ -109,6 +111,7 @@
" --version Show version\n"
" --dump-conf Dump default configura=
tion\n"
" --dump-modules Dump list of available=
modules\n"
+ " --dump-resample-methods Dump available resampl=
e methods\n"
" -k --kill Kill a running daemon\=
n"
" --check Check for a running da=
emon\n\n"
=
@@ -131,9 +134,8 @@
" -p, --dl-search-path=3DPATH Set the search path =
for dynamic shared\n"
" objects (plugins)\n"
" --resample-method=3D[METHOD] Use the specified re=
sampling method\n"
- " (one of src-sinc-mediu=
m-quality,\n"
- " src-sinc-best-quality,=
src-sinc-fastest\n"
- " src-zero-order-hold,sr=
c-linear,trivial)\n"
+ " (See --dump-resample-m=
ethods for\n"
+ " possible values)\n"
" --use-pid-file[=3DBOOL] Create a PID file\n"
" --no-cpu-limit[=3DBOOL] Do not install CPU l=
oad limiter on\n"
" platforms that support=
it.\n"
@@ -178,6 +180,10 @@
conf->cmd =3D PA_CMD_DUMP_MODULES;
break;
=
+ case ARG_DUMP_RESAMPLE_METHODS:
+ conf->cmd =3D PA_CMD_DUMP_RESAMPLE_METHODS;
+ break;
+ =
case 'k':
case ARG_KILL:
conf->cmd =3D PA_CMD_KILL;
Modified: branches/lennart/src/daemon/daemon-conf.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/daemon/dae=
mon-conf.h?rev=3D1722&root=3Dpulseaudio&r1=3D1721&r2=3D1722&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/daemon/daemon-conf.h (original)
+++ branches/lennart/src/daemon/daemon-conf.h Sun Aug 26 01:49:11 2007
@@ -40,7 +40,8 @@
PA_CMD_DUMP_CONF,
PA_CMD_DUMP_MODULES,
PA_CMD_KILL,
- PA_CMD_CHECK
+ PA_CMD_CHECK,
+ PA_CMD_DUMP_RESAMPLE_METHODS
} pa_daemon_conf_cmd_t;
=
#ifdef HAVE_SYS_RESOURCE_H
Modified: branches/lennart/src/daemon/main.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/daemon/mai=
n.c?rev=3D1722&root=3Dpulseaudio&r1=3D1721&r2=3D1722&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/daemon/main.c (original)
+++ branches/lennart/src/daemon/main.c Sun Aug 26 01:49:11 2007
@@ -419,6 +419,15 @@
goto finish;
}
=
+ case PA_CMD_DUMP_RESAMPLE_METHODS: {
+ int i;
+
+ for (i =3D 0; i < PA_RESAMPLER_MAX; i++)
+ printf("%s\n", pa_resample_method_to_string(i));
+ =
+ goto finish;
+ }
+ =
case PA_CMD_HELP :
pa_cmdline_help(argv[0]);
retval =3D 0;
More information about the pulseaudio-commits
mailing list