paraslash.git
15 years agoFix a typo in gui.c.
Andre Noll [Sun, 15 Feb 2009 17:12:19 +0000 (18:12 +0100)]
Fix a typo in gui.c.

15 years agoMerge commit 'fml/master'
Andre Noll [Wed, 11 Feb 2009 22:56:24 +0000 (23:56 +0100)]
Merge commit 'fml/master'

15 years agoFix the ROUND_UP macro.
Andre Noll [Wed, 11 Feb 2009 21:18:17 +0000 (22:18 +0100)]
Fix the ROUND_UP macro.

Doooh.

15 years agoDo not allocate too much space for the mp3 chunk table.
Andre Noll [Wed, 11 Feb 2009 21:17:42 +0000 (22:17 +0100)]
Do not allocate too much space for the mp3 chunk table.

The chunk_table contains an array of uint32_t values.

15 years agoMerge commit 'fml/master'
Andre Noll [Tue, 10 Feb 2009 07:44:02 +0000 (08:44 +0100)]
Merge commit 'fml/master'

15 years agoMerge commit 'meins/master'
Andre Noll [Mon, 9 Feb 2009 19:37:04 +0000 (20:37 +0100)]
Merge commit 'meins/master'

15 years agoMerge commit 'meins/master'
Andre Noll [Fri, 6 Feb 2009 17:01:53 +0000 (18:01 +0100)]
Merge commit 'meins/master'

15 years agoafs.cmd: Add documentation of ls -lc.
Andre Noll [Wed, 4 Feb 2009 21:33:04 +0000 (22:33 +0100)]
afs.cmd: Add documentation of ls -lc.

15 years agoattribute.c: Trivial docu fix.
Andre Noll [Wed, 4 Feb 2009 21:32:34 +0000 (22:32 +0100)]
attribute.c: Trivial docu fix.

15 years agoIgnore SIGUSR1 before forking the afs process.
Andre Noll [Wed, 4 Feb 2009 21:27:29 +0000 (22:27 +0100)]
Ignore SIGUSR1 before forking the afs process.

Otherwise, afs might get killed by SIGUSR1 before it gets a chance
to ignore this signal.

15 years agoafs: Fix a shm leak.
Andre Noll [Wed, 4 Feb 2009 21:25:55 +0000 (22:25 +0100)]
afs: Fix a shm leak.

Even if the command handler stops to read the command output
afs must continue to read shmids from server fd so that it can
destroy all shared memory areas that the server created for afs.

15 years agoCall shm(destroy) on the mmd shared memory area right after creating it.
Andre Noll [Tue, 3 Feb 2009 20:41:08 +0000 (21:41 +0100)]
Call shm(destroy) on the mmd shared memory area right after creating it.

It will only be destroyed when the last reference is gone, which
is when para_server exits. This allows to get rid of a global
variable. Moreover, the shared memory area will be destroyed even
in case para_server crashes.

15 years agoSimplify ggo/makefile.
Gerrit Renker [Tue, 27 Jan 2009 10:46:27 +0000 (11:46 +0100)]
Simplify ggo/makefile.

Use a define rather than shell code to compute the options to gengetopt.

15 years agoFix config file handling for audiod and clean up init functions.
Andre Noll [Mon, 26 Jan 2009 22:27:50 +0000 (23:27 +0100)]
Fix config file handling for audiod and clean up init functions.

As noted by Gerrit Renker, audiod refused to start if the --config_file
option was not given and the default config file does not exist.

Fix this bug and rename some of the init functions to make the naming
more consistent.

15 years agoMerge commit 'fml/master'
Andre Noll [Mon, 26 Jan 2009 19:38:08 +0000 (20:38 +0100)]
Merge commit 'fml/master'

15 years agoFix build as root.
Andre Noll [Mon, 26 Jan 2009 13:19:19 +0000 (14:19 +0100)]
Fix build as root.

As noted by Gerrit Renker, when trying to extract help text from
./para_audiod, the build stops when logged in as root because
para_audiod refuses to start as root if --user and --group are
not given.

This patch moves the check for UID==0 after the check for --help and
--detailed-help so that the help text may be extracted as root even
if no --user and --group options are given.

15 years agoBuild problem when no audiod.conf exists
Gerrit Renker [Sat, 24 Jan 2009 22:37:04 +0000 (23:37 +0100)]
Build problem when no audiod.conf exists

This avoids stopping the build process and allows users to read
the detailed help before getting the error message about a missing
audiod.conf file - fixed by parsing after testing for the help text.

15 years agoDon't let make write the filename into the output
Gerrit Renker [Sat, 24 Jan 2009 20:50:09 +0000 (21:50 +0100)]
Don't let make write the filename into the output

The 'cd' output in the command echoed the directory into the
output, which is not welcome in the output file (gengetopt
did not like that).

15 years agoFix para_client's --loglevel option.
Andre Noll [Sat, 24 Jan 2009 14:08:43 +0000 (15:08 +0100)]
Fix para_client's --loglevel option.

Without this fix, para_client always used loglevel debug.

15 years agoFix compile warning on NetBSD.
Andre Noll [Wed, 21 Jan 2009 15:43:41 +0000 (16:43 +0100)]
Fix compile warning on NetBSD.

This fixes

color.c:71: warning: array subscript has type 'char'

15 years agoosx_write.c: Add missing include.
Andre Noll [Wed, 21 Jan 2009 15:11:51 +0000 (16:11 +0100)]
osx_write.c: Add missing include.

15 years agoMerge commit 'meins/master'
Andre Noll [Mon, 19 Jan 2009 13:49:09 +0000 (14:49 +0100)]
Merge commit 'meins/master'

15 years agoMerge commit 'athcx/master'
Andre Noll [Sun, 18 Jan 2009 23:29:44 +0000 (00:29 +0100)]
Merge commit 'athcx/master'

15 years agomake_wav_header(): Add some comments.
Andre Noll [Sun, 18 Jan 2009 23:23:49 +0000 (00:23 +0100)]
make_wav_header(): Add some comments.

15 years agoserver.c: Only try to print errors when not in daemon mode.
Andre Noll [Sun, 18 Jan 2009 23:22:53 +0000 (00:22 +0100)]
server.c: Only try to print errors when not in daemon mode.

15 years agoUse symbolic names for loglevels and clean up the ggo mess.
Andre Noll [Sun, 18 Jan 2009 01:25:42 +0000 (02:25 +0100)]
Use symbolic names for loglevels and clean up the ggo mess.

We now use m4 to generate the ggo files, which allows to get rid of
a lot of duplicated command line options and improves the readability
of the man pages.

15 years agoAdd some more derived files to .gitignore.
Andre Noll [Sun, 18 Jan 2009 01:19:00 +0000 (02:19 +0100)]
Add some more derived files to .gitignore.

15 years agoMove gengetopt targets to own Makefile.
Andre Noll [Sat, 17 Jan 2009 18:59:35 +0000 (19:59 +0100)]
Move gengetopt targets to own Makefile.

15 years agoMove ggo files to a separate directory.
Andre Noll [Sat, 17 Jan 2009 18:22:14 +0000 (19:22 +0100)]
Move ggo files to a separate directory.

15 years agoMove color logging code to daemon.c and use it also for para_audiod.
Andre Noll [Fri, 16 Jan 2009 18:28:57 +0000 (19:28 +0100)]
Move color logging code to daemon.c and use it also for para_audiod.

This patch also introduces the para_log() function of daemon.c so that
both para_server and para_audiod can use it.

15 years agoRename daemon_init() to daemonize().
Andre Noll [Thu, 15 Jan 2009 23:39:05 +0000 (00:39 +0100)]
Rename daemon_init() to daemonize().

15 years agoImplement colored logging for para_server.
Andre Noll [Thu, 15 Jan 2009 23:19:22 +0000 (00:19 +0100)]
Implement colored logging for para_server.

15 years agoLoglevel adjustments.
Andre Noll [Thu, 15 Jan 2009 23:18:20 +0000 (00:18 +0100)]
Loglevel adjustments.

15 years agoMake the loglevels start at zero.
Andre Noll [Thu, 15 Jan 2009 18:32:47 +0000 (19:32 +0100)]
Make the loglevels start at zero.

We want to use an array of size NUM_LOGLEVELS.

15 years agoPrefix loglevel macros with "LL_".
Andre Noll [Thu, 15 Jan 2009 17:47:53 +0000 (18:47 +0100)]
Prefix loglevel macros with "LL_".

15 years agoNEWS update.
Andre Noll [Thu, 15 Jan 2009 04:21:13 +0000 (05:21 +0100)]
NEWS update.

15 years agopara_fade: Add description of the three modes of operation.
Andre Noll [Thu, 15 Jan 2009 04:20:51 +0000 (05:20 +0100)]
para_fade: Add description of the three modes of operation.

Some other small improvements as well.

15 years agoAdd some missing source code documentation.
Andre Noll [Thu, 15 Jan 2009 03:58:05 +0000 (04:58 +0100)]
Add some missing source code documentation.

15 years agoImprove memory mapping.
Andre Noll [Mon, 12 Jan 2009 18:57:01 +0000 (19:57 +0100)]
Improve memory mapping.

para_mmap(): Do not exit on errors. Fix the only caller in vss.c
accordingly.

mmap_full_file(): Use para_mmap().

15 years agopara_fd_set(): Replace check for invalid fds by an assert().
Andre Noll [Mon, 12 Jan 2009 17:11:52 +0000 (18:11 +0100)]
para_fd_set(): Replace check for invalid fds by an assert().

15 years agoImprove SIGHUP handling for afs.
Andre Noll [Mon, 12 Jan 2009 16:34:19 +0000 (17:34 +0100)]
Improve SIGHUP handling for afs.

Make afs also reload the config file and reopen its log file. The old
code did not honor for example loglevel changes.

15 years agoCosmetics: Rename some functions.
Andre Noll [Mon, 12 Jan 2009 14:52:14 +0000 (15:52 +0100)]
Cosmetics: Rename some functions.

Add "_or_die" suffix to functions that exit on errors.

15 years agoVarious small cleanups and documentation improvements.
Andre Noll [Sun, 11 Jan 2009 23:43:21 +0000 (00:43 +0100)]
Various small cleanups and documentation improvements.

15 years agoMajor udp sender/receiver improvements.
Andre Noll [Sun, 11 Jan 2009 22:18:04 +0000 (23:18 +0100)]
Major udp sender/receiver improvements.

- Reserve some bytes in the udp header for future extensions.
- Simplify udp audio header reading/writing.
- Handle short reads in udp_recv.
- Extended sanity checks for the udp audio header.
- Fix a memory leak in the error path of udp_recv_open().

15 years agofilter_common: Fix error checking.
Andre Noll [Sun, 11 Jan 2009 22:16:01 +0000 (23:16 +0100)]
filter_common: Fix error checking.

task->error being a positive value should not be regarded as
an error condition.

15 years agovss barrier fixes.
Andre Noll [Sun, 11 Jan 2009 16:07:36 +0000 (17:07 +0100)]
vss barrier fixes.

This fixes some problems with --announce_time and --autoplay_delay.

15 years agoserver.c: Init the now timeval early.
Andre Noll [Sun, 11 Jan 2009 16:06:03 +0000 (17:06 +0100)]
server.c: Init the now timeval early.

It is used at least in init_vss() which gets called before schedule().

15 years agoSimplify udp_send.c.
Andre Noll [Sun, 11 Jan 2009 02:34:33 +0000 (03:34 +0100)]
Simplify udp_send.c.

It's enough to loop only once over all targets.

15 years agoAlways respect the data_send_barrier.
Andre Noll [Sun, 11 Jan 2009 02:33:08 +0000 (03:33 +0100)]
Always respect the data_send_barrier.

15 years agoImplement chunk queing for the udp sender.
Andre Noll [Sat, 10 Jan 2009 17:36:59 +0000 (18:36 +0100)]
Implement chunk queing for the udp sender.

15 years agoFix a bug in udp_send_buf().
Andre Noll [Sat, 10 Jan 2009 17:19:15 +0000 (18:19 +0100)]
Fix a bug in udp_send_buf().

In case multiple targets are defined and a write for one of them
fails, the old code would return early rather than continue to send
the chunk to the other targets.

15 years agoAdd chunk_queue infrastructure to the udp sender.
Andre Noll [Sat, 10 Jan 2009 17:15:18 +0000 (18:15 +0100)]
Add chunk_queue infrastructure to the udp sender.

The chunk queue is created and destroyed but not yet used.

15 years agoMake send_queued_chunks() public.
Andre Noll [Sat, 10 Jan 2009 17:03:24 +0000 (18:03 +0100)]
Make send_queued_chunks() public.

The udp sender will start to use it soon. Make it take the fd and
the chunk queue instead of a struct sender_client as the udp sender
does not use struct sender_client.

15 years agoupd_send: Add socket fd to close_on_fork list.
Andre Noll [Sat, 10 Jan 2009 16:56:30 +0000 (17:56 +0100)]
upd_send: Add socket fd to close_on_fork list.

15 years agoupd_send.c: Use write_nonblock() rather than write_all().
Andre Noll [Sat, 10 Jan 2009 16:09:16 +0000 (17:09 +0100)]
upd_send.c: Use write_nonblock() rather than write_all().

To this aim, move write_nonblock() from send_common.c to fd.c.

15 years agoFix an fd leak in udp_send.c.
Andre Noll [Sat, 10 Jan 2009 15:52:54 +0000 (16:52 +0100)]
Fix an fd leak in udp_send.c.

In case mark_fd_nonblocking() fails, the old code leaks an open fd.

15 years agoudp sender: Make ttl configurable.
Andre Noll [Sat, 10 Jan 2009 15:50:43 +0000 (16:50 +0100)]
udp sender: Make ttl configurable.

15 years agoudp sender/receiver improvements.
Andre Noll [Sat, 10 Jan 2009 02:48:55 +0000 (03:48 +0100)]
udp sender/receiver improvements.

15 years agoChange year of copyright from 2008 to 2009.
Andre Noll [Sat, 10 Jan 2009 00:53:18 +0000 (01:53 +0100)]
Change year of copyright from 2008 to 2009.

15 years agoReplace the ortp sender/receiver by the generic udp sender/receiver.
Andre Noll [Sat, 10 Jan 2009 00:37:49 +0000 (01:37 +0100)]
Replace the ortp sender/receiver by the generic udp sender/receiver.

The ortp code was broken for quite some time. The new code is smaller and
we drop the dependency on libortp.

15 years agoMerge commit 'meins/master'
Andre Noll [Fri, 9 Jan 2009 00:16:44 +0000 (01:16 +0100)]
Merge commit 'meins/master'

15 years agoFix typo in fade.ggo.
Andre Noll [Thu, 8 Jan 2009 14:35:34 +0000 (15:35 +0100)]
Fix typo in fade.ggo.

15 years agoFix a typo in gui.c.
Andre Noll [Wed, 17 Dec 2008 11:49:24 +0000 (12:49 +0100)]
Fix a typo in gui.c.

15 years agoaudiod: Implement --config-file option.
Andre Noll [Sun, 14 Dec 2008 12:03:48 +0000 (13:03 +0100)]
audiod: Implement --config-file option.

15 years agoaudiod: Include help for receivers/filter/writers in help output.
Andre Noll [Sun, 7 Dec 2008 11:21:48 +0000 (12:21 +0100)]
audiod: Include help for receivers/filter/writers in help output.

15 years agoMake functions for printing recv/filter/write help public.
Andre Noll [Sun, 7 Dec 2008 10:16:43 +0000 (11:16 +0100)]
Make functions for printing recv/filter/write help public.

So that these functions can also be used by audiod.

15 years agopara_afh: Accept more than one input file in info mode.
Andre Noll [Sun, 7 Dec 2008 09:45:33 +0000 (10:45 +0100)]
para_afh: Accept more than one input file in info mode.

15 years agoFix a typo in audiod.ggo.
Andre Noll [Sun, 7 Dec 2008 09:44:28 +0000 (10:44 +0100)]
Fix a typo in audiod.ggo.

15 years agoNEWS update.
Andre Noll [Sat, 6 Dec 2008 16:56:58 +0000 (17:56 +0100)]
NEWS update.

15 years agoImprove help/man page of para_recv.
Andre Noll [Sat, 6 Dec 2008 16:56:08 +0000 (17:56 +0100)]
Improve help/man page of para_recv.

15 years agoMerge commit 'meins/master'
Andre Noll [Sat, 6 Dec 2008 14:36:46 +0000 (15:36 +0100)]
Merge commit 'meins/master'

15 years agoAdd missing __printf_2_3 to all para_log functions.
Andre Noll [Sat, 6 Dec 2008 13:50:10 +0000 (14:50 +0100)]
Add missing __printf_2_3 to all para_log functions.

15 years agoRemove the .purpose and .help args from struct ggo_help.
Andre Noll [Sat, 6 Dec 2008 13:42:28 +0000 (14:42 +0100)]
Remove the .purpose and .help args from struct ggo_help.

15 years agoImprove help/man page of para_write.
Andre Noll [Sat, 6 Dec 2008 13:37:03 +0000 (14:37 +0100)]
Improve help/man page of para_write.

15 years agoImprove help/man page of para_filter.
Andre Noll [Sat, 6 Dec 2008 11:09:17 +0000 (12:09 +0100)]
Improve help/man page of para_filter.

This patch makes para_filter to tie together the help texts from
all its filters.

15 years agoNEWS update.
Andre Noll [Tue, 2 Dec 2008 17:02:08 +0000 (18:02 +0100)]
NEWS update.

15 years agoconfigure.ac: Fix $filter_cmdline_objs and $audiod_cmdline_objs.
Andre Noll [Tue, 2 Dec 2008 17:01:49 +0000 (18:01 +0100)]
configure.ac: Fix $filter_cmdline_objs and $audiod_cmdline_objs.

A previous patch added the new mp3dec_filter_cmdline object at
the wrong place.

15 years agoFix another gcc warning caused by PARA_MAX().
Andre Noll [Mon, 1 Dec 2008 20:54:35 +0000 (21:54 +0100)]
Fix another gcc warning caused by PARA_MAX().

Clean up ogg_compute_chunk_table() while we're at it.

15 years agoFix PARA_MAX().
Andre Noll [Mon, 1 Dec 2008 20:50:11 +0000 (21:50 +0100)]
Fix PARA_MAX().

Gimme that bag. Yes, the brown one. Quick.

15 years agoMerge commit 'fml/master'
Andre Noll [Mon, 1 Dec 2008 20:19:17 +0000 (21:19 +0100)]
Merge commit 'fml/master'

15 years agomp3dec: Only proceed decoding if at least 16K are available.
Andre Noll [Mon, 1 Dec 2008 20:18:41 +0000 (21:18 +0100)]
mp3dec: Only proceed decoding if at least 16K are available.

This is safe because the output buffer size is at least 32K.

15 years agoAdd command line support for mp3dec.
Andre Noll [Mon, 1 Dec 2008 20:16:21 +0000 (21:16 +0100)]
Add command line support for mp3dec.

ATM, --ignore-crc and --bufsize are the only supported options.

15 years agoReplace MAX, MIN, ABS macros by type-checking variants.
Andre Noll [Mon, 1 Dec 2008 15:51:37 +0000 (16:51 +0100)]
Replace MAX, MIN, ABS macros by type-checking variants.

Taken from the Linux kernel. These macros also evaluate each parameter
only once. Fix up all resulting gcc warnings.

15 years agoMerge commit 'meins/next'
Andre Noll [Mon, 1 Dec 2008 14:02:26 +0000 (15:02 +0100)]
Merge commit 'meins/next'

15 years agonew codename, reset version to git
Andre Noll [Mon, 1 Dec 2008 12:59:00 +0000 (13:59 +0100)]
new codename, reset version to git

15 years agothe paraslash-0.3.3 release tarball
Andre Noll [Mon, 1 Dec 2008 12:51:46 +0000 (13:51 +0100)]
the paraslash-0.3.3 release tarball

15 years agoparaslash 0.3.3 v0.3.3
Andre Noll [Mon, 1 Dec 2008 12:49:33 +0000 (13:49 +0100)]
paraslash 0.3.3

15 years agoInclude portable_io.h only when needed.
Andre Noll [Sun, 30 Nov 2008 23:26:57 +0000 (00:26 +0100)]
Include portable_io.h only when needed.

15 years agowav_filter: Use the functions from portable_io.h for writing the wav header.
Andre Noll [Sun, 30 Nov 2008 23:21:16 +0000 (00:21 +0100)]
wav_filter: Use the functions from portable_io.h for writing the wav header.

15 years agoRename filter_chain.c to filter_common.c.
Andre Noll [Sun, 30 Nov 2008 22:11:45 +0000 (23:11 +0100)]
Rename filter_chain.c to filter_common.c.

15 years agoRename filter source files.
Andre Noll [Sun, 30 Nov 2008 20:45:38 +0000 (21:45 +0100)]
Rename filter source files.

Some filters already had the _filter postfix, others had not. Rename
the latter just to be consistent.

15 years agoMerge branch 'master' into next
Andre Noll [Sun, 30 Nov 2008 20:15:29 +0000 (21:15 +0100)]
Merge branch 'master' into next

15 years agoCreate list of supported filters via autoconf.
Andre Noll [Sun, 30 Nov 2008 20:15:15 +0000 (21:15 +0100)]
Create list of supported filters via autoconf.

This allows to get rid of some CPP cruft in filter.h.

15 years agoconfigure.ac: Remove unused variable filter_filters.
Andre Noll [Sun, 30 Nov 2008 17:30:00 +0000 (18:30 +0100)]
configure.ac: Remove unused variable filter_filters.

15 years agoconfigure.ac: Remove amp_filter from set of executables.
Andre Noll [Sun, 30 Nov 2008 17:26:17 +0000 (18:26 +0100)]
configure.ac: Remove amp_filter from set of executables.

It is not an executable.

15 years agoMake filter config parsers return int.
Andre Noll [Sun, 30 Nov 2008 16:41:50 +0000 (17:41 +0100)]
Make filter config parsers return int.

This way, we can distinguish between syntax errors and invalid config
values (failed sanity checks).

15 years agooggdec_filter.ggo: Add more documentation.
Andre Noll [Sun, 30 Nov 2008 14:24:58 +0000 (15:24 +0100)]
oggdec_filter.ggo: Add more documentation.

15 years agooggdec_parse_config(): Add some sanity checks.
Andre Noll [Sun, 30 Nov 2008 14:23:46 +0000 (15:23 +0100)]
oggdec_parse_config(): Add some sanity checks.

15 years agowav: Only create wav header if there is output available.
Andre Noll [Sun, 30 Nov 2008 14:13:35 +0000 (15:13 +0100)]
wav: Only create wav header if there is output available.

Due to recent changes to filter_chain.c, the convert functions of all
activated filters are called even if there is no output availabe since
the ogg vorbis decoder needs this.

However, this change broke the wav filter: wav_convert() is now called
even if the previous filter (e.g. oggdec) has not yet determined the
format of the input stream.

This caused the wav filter to write out an invalid wav header with 0
channels. Fix it by not doing anything unless wav_convert() gets called
with non-empty input.

15 years agopara_server: Reformat help text of the --afs_database_dir option.
Andre Noll [Sun, 30 Nov 2008 00:18:01 +0000 (01:18 +0100)]
para_server: Reformat help text of the --afs_database_dir option.

This caused help2man to create a badly formated man page.