Andre [Thu, 20 Apr 2006 18:56:04 +0000 (20:56 +0200)]
use git-tar-tree to make the tarball
This simplifies Makefile.in quite a bit, speeds up the tarball
creation, and reduces the size of the compressed tarball from 560KB
to 408KB, mostly because it no longer contains the screenshot images.
Andre [Wed, 19 Apr 2006 21:59:08 +0000 (23:59 +0200)]
Makefile.in: Remove special treatment of ortp_send/ortp_recv
they no longer depend on glib, so use the generic rule for building
object files. This made gcc spit out some trivial warnings about
unused variables which are also fixed in this patch.
Andre [Wed, 19 Apr 2006 20:35:04 +0000 (22:35 +0200)]
net.c: make it compile without ucred
This patch is ugly as hell and only compile-tested. It obviously
needs more work (or a totally different approch like using the usual
send/recv functions in case ucred is not available).
Andre [Wed, 19 Apr 2006 02:54:20 +0000 (04:54 +0200)]
NEWS: gcc-2.95 is no longer supported
The admin of the single remaining system I have access to which was
still running gcc-2.95 recently upgraded to gcc-3 (a version which
is merely 3 years old rather than the 7 years old gcc-2.95).
This means that upcoming paraslash releases will no longer be
compile-tested with gcc-2.95.
gcc-2.95
finally didn't manage to survive
it served all well for all the time
but no one really cares to whine
as we all meet in some other life
Andre [Tue, 18 Apr 2006 19:53:48 +0000 (21:53 +0200)]
split play.c and rename para_play to para_write
This separates the code to write an audio stream into several
independent pieces:
write.h: definition of writer-related structures
write.c: the para_write main program
write_common.c: functions to be shared between para_write
and para_audiod
write_common.h: exported functions of write_common.c
alsa_writer.c: writes the stream to an alsa sound device
file_writer.c: writes the stream to a file
Other writers (aka output plugins) can be added easily.
Andre [Tue, 18 Apr 2006 18:42:15 +0000 (20:42 +0200)]
add new writer to para_play: file
It simply writes the input to a random filename under ~/.paraslash.
Also, add some writer-related macros to config.h and two new options
for para_play: --writer and --list_writers.
Andre [Tue, 18 Apr 2006 03:28:55 +0000 (05:28 +0200)]
Further para_play abstraction: struct writer_node_group
This structure contains the list of writer nodes and information common to all
of these nodes. The idea is that the wng group code will be shared between
para_audiod and para_play.
Andre [Mon, 17 Apr 2006 18:44:22 +0000 (20:44 +0200)]
play.c: reorder and rename some functions.
Move everything which depends on ALSA to the three functions
alsa_init(), former set_alsa_params(), alsa_write(), former
pcm_write(), and alsa_shutdown().
Andre [Sun, 16 Apr 2006 17:56:09 +0000 (19:56 +0200)]
fix more struct timeval related warnings
Use tv2ms() which returns long unsigned where appropriate.
For the remaining cases, cast the members of struct timeval
to long unsigned if used via a format string.
Andre [Fri, 14 Apr 2006 13:31:48 +0000 (15:31 +0200)]
com_sa: pedantic mem leak fix.
In fact, this memory leak doesn't matter much because it happens in the child
which calls exit shortly afterwards. But it's considered good programming
practice to free all memory, so..
Andre [Mon, 10 Apr 2006 17:40:11 +0000 (19:40 +0200)]
improved version of split_args()
Thanks to Lorenzo Bettini for pointing this out.
This patch also fixes a bug with the default filter configuration which
allocated too little memory for the array of filter configurations. Now
we always allocate space for at least three entries.
Andre [Mon, 27 Mar 2006 08:50:08 +0000 (10:50 +0200)]
specify the three grab modes as values in grab_client.ggo
That makes gengetopt check that the argument to the --mode
option is one of sloppy, pedantic, or aggressive, so get rid of
E_INVALID_GRAB_MODE, the gc_modes array and of the error check in
grab_client.c.
Another nice side-effect is that also "s", "p", "a" work as
abreviations for the grab mode argument.
Andre [Mon, 27 Mar 2006 05:42:20 +0000 (07:42 +0200)]
gengetopt improvements
Use the --set-package option of gengetopts for receivers, filters
and the grab command, and set the 'package' name appropriately.
Moreover, --no-handle-version is needed for the grab command. Without
it, grab -V terminates para_audiod.
Andre [Mon, 27 Mar 2006 04:28:56 +0000 (06:28 +0200)]
update to gengetopt-2.17
gengetopt-2.17 has an improved help management, thanks again to Lorenzo
Bettini for implementing my suggestions. The help texts of the options
are contained in an array which is defined in xyz.cmdline.c and declared
as extern in xyz.cmdline.h.
In order to link more than one xyz.cmdline.o into a single binary,
these arrays must have different names. So use the --arg-struct-name
option of gengetopt for each receiver/filter.
Andre [Mon, 27 Mar 2006 03:36:52 +0000 (05:36 +0200)]
audiod: boost the stat command
It now takes any number of arguments, including zero which selects
the old behaviour (dump _all_ status items to stdout). If called
with arguments, each arg must be a valid status item and only these
are written to sdout.