paraslash.git
18 years agouse const qualifiers where possible
Andre [Sun, 26 Mar 2006 00:29:50 +0000 (01:29 +0100)]
use const qualifiers where possible

18 years agomysql_selector.c: whitespace cleanup
Andre [Sat, 25 Mar 2006 21:07:22 +0000 (22:07 +0100)]
mysql_selector.c: whitespace cleanup

18 years agoaudiod: Kill another unused variable
Andre [Sat, 25 Mar 2006 20:41:53 +0000 (21:41 +0100)]
audiod: Kill another unused variable

18 years agoortp_send: Kill an unused variable
Andre [Sat, 25 Mar 2006 20:33:20 +0000 (21:33 +0100)]
ortp_send: Kill an unused variable

18 years agomysql selector: Fix a memory leak in get_query()
Andre [Sat, 25 Mar 2006 20:15:46 +0000 (21:15 +0100)]
mysql selector: Fix a memory leak in get_query()

If the stream definition contained N > 1 "score:" lines (an invalid
configuration anyway, there should be at most one), we leaked the first
N - 1 score lines. The fix is to take into account the first one only.

18 years agocom_next() fix.
Andre [Sat, 25 Mar 2006 19:59:21 +0000 (20:59 +0100)]
com_next() fix.

Do not clear the AFS_NEXT flag in afs_send_chunk() and increase mmd->events.
Fixes a (rare) problem where the next command did not work.

18 years agos_a_r_list(): return NULL on errors
Andre [Sat, 25 Mar 2006 19:38:42 +0000 (20:38 +0100)]
s_a_r_list(): return NULL on errors

And fix the documentation.

18 years agoaudiod: use set_restart_barrier() instead of duplicating it.
Andre [Sat, 25 Mar 2006 19:06:37 +0000 (20:06 +0100)]
audiod: use set_restart_barrier() instead of duplicating it.

18 years agodccp_recv: increase output buffer size
Andre [Sat, 25 Mar 2006 18:25:26 +0000 (19:25 +0100)]
dccp_recv: increase output buffer size

18 years agodccp_send: fix sending of header packets
Andre [Sat, 25 Mar 2006 01:00:46 +0000 (02:00 +0100)]
dccp_send: fix sending of header packets

The current code sends the header before _each_ packet, rather than only
once. Fix is trivial.

18 years agodccp: avoid "message too long" errors.
Andre [Fri, 24 Mar 2006 23:15:03 +0000 (00:15 +0100)]
dccp: avoid "message too long" errors.

Break down the write into 1KB chunks as a workaround.

18 years agolog the IP address of the connecting client.
Andre [Fri, 24 Mar 2006 20:41:36 +0000 (21:41 +0100)]
log the IP address of the connecting client.

18 years agokill duplicate write_ok()
Andre [Fri, 24 Mar 2006 19:05:34 +0000 (20:05 +0100)]
kill duplicate write_ok()

use the generic inline function from send.h instead and shutdown the
connection if an error occured in write_ok().

18 years agoFix return value of dccp_recv pre_select()
Andre [Thu, 23 Mar 2006 14:01:08 +0000 (15:01 +0100)]
Fix return value of dccp_recv pre_select()

Also, add a log message on errors/eof.

18 years agogui: Only check STDIN for readability if curses is active.
Andre [Thu, 23 Mar 2006 13:57:52 +0000 (14:57 +0100)]
gui: Only check STDIN for readability if curses is active.

18 years agoMore %d -> %zd fixes
Andre [Wed, 15 Mar 2006 22:58:29 +0000 (23:58 +0100)]
More %d -> %zd fixes

Noted by Steffen Klassert.

18 years agoortp: make jitter compensation configurable.
Andre [Tue, 14 Mar 2006 18:18:51 +0000 (19:18 +0100)]
ortp: make jitter compensation configurable.

Non-zero values turn on ortp's adaptive jitter compensation.

18 years agodccp_send: comment out noisy debug message.
Andre [Tue, 14 Mar 2006 18:16:52 +0000 (19:16 +0100)]
dccp_send: comment out noisy debug message.

18 years agofixes for ortp-0.9.1
Andre [Tue, 14 Mar 2006 17:41:10 +0000 (18:41 +0100)]
fixes for ortp-0.9.1

turn on adaptive jitter compensation. ortp-0.9.1 seems to be unhappy
without it. This patch also contains some simplifications and timing
improvements.

18 years agodb.c: use PARA_STRERROR()...
Andre [Tue, 14 Mar 2006 16:51:36 +0000 (17:51 +0100)]
db.c: use PARA_STRERROR()...

... instead of logging the error number only.

18 years agoupdate README
Andre [Tue, 14 Mar 2006 16:44:22 +0000 (17:44 +0100)]
update README

Mention the new dccp sender/receiver.

18 years agoadd dccp.h to tarball
Andre [Tue, 14 Mar 2006 16:39:21 +0000 (17:39 +0100)]
add dccp.h to tarball

The tarball did not compile because dccp.h was missing.

18 years agoupdate FEATURES
Andre [Mon, 13 Mar 2006 04:53:07 +0000 (05:53 +0100)]
update FEATURES

Mention the new dccp sender.

18 years agoupdate to libortp-0.9.1
Andre [Mon, 13 Mar 2006 02:49:05 +0000 (03:49 +0100)]
update to libortp-0.9.1

glib was dropped from libortp, and paraslash does not need it
either. So kill the check for glib in configure.ac and no longer
link para_server, para_recv, and para_audiod gainst glib. Moreover,
change guint32 to uint32_t in ortp_recv.c and ortp_send.c.

18 years agomake install: do not create an unused directory
Andre [Mon, 13 Mar 2006 00:50:16 +0000 (01:50 +0100)]
make install: do not create an unused directory

$(VARDIR)/fifo is unused for ages.

18 years agoupdate NEWS
Andre [Mon, 13 Mar 2006 00:43:58 +0000 (01:43 +0100)]
update NEWS

18 years agoFix help text of --list_receivers.
Andre [Mon, 13 Mar 2006 00:39:41 +0000 (01:39 +0100)]
Fix help text of --list_receivers.

It still used the old syntax with colons as separators.

18 years agospeed up the compress filter
Andre [Mon, 13 Mar 2006 00:35:25 +0000 (01:35 +0100)]
speed up the compress filter

Complete rewrite of the core loop of the compress filter.  The gprof
output of para_audiod (see below) indicates that CPU usage goes down
to about 40%.

new:
~~~~

Each sample counts as 0.01 seconds.
%   cumulative   self              self     total
time   seconds   seconds    calls   s/call   s/call  name

35.94      1.47     1.47     7414     0.00     0.00  compress
22.74      2.40     0.93    57319     0.00     0.00  mp3dec
16.87      3.09     0.69        1     0.69     4.04  audiod_mainloop

34.59      1.47     1.47     7414     0.00     0.00  compress
22.59      2.43     0.96        1     0.96     4.20  audiod_mainloop
17.53      3.17     0.74    61285     0.00     0.00  mp3dec

35.41      1.48     1.48     7414     0.00     0.00  compress
20.10      2.32     0.84        1     0.84     4.15  audiod_mainloop
17.82      3.06     0.74    58675     0.00     0.00  mp3dec

Average of self-seconds (3rd column):
compress 1.47
audiod_mainloop 0.83
mp3dec 0.80

0.2.11:
~~~~~~~

Each sample counts as 0.01 seconds.
%   cumulative   self              self     total
time   seconds   seconds    calls   s/call   s/call  name

56.38      3.31     3.31     7414     0.00     0.00  compress
12.93      4.08     0.76    57566     0.00     0.00  mp3dec
11.39      4.75     0.67        1     0.67     5.86  audiod_mainloop

57.59      3.38     3.38     7414     0.00     0.00  compress
14.08      4.20     0.82    63095     0.00     0.00  mp3dec
11.26      4.86     0.66        1     0.66     5.82  audiod_mainloop

57.79      4.12     4.12     7414     0.00     0.00  compress
13.62      5.08     0.97        1     0.97     7.07  audiod_mainloop
 8.08      5.66     0.57    57196     0.00     0.00  mp3dec

Average of self-seconds (3rd column):
compress  3.60
audiod_mainloop 0.76
mp3dec 0.71

18 years agoMerge branch 'dccp'
Andre [Sat, 11 Mar 2006 16:45:20 +0000 (17:45 +0100)]
Merge branch 'dccp'

Fix up merge conflicts by hand.
Conflicts:

configure.ac
error.h
server.ggo

18 years agonew codename, reset version to git
Andre [Sat, 11 Mar 2006 15:29:29 +0000 (16:29 +0100)]
new codename, reset version to git

18 years agothe paraslash-0.2.11 release tarball
Andre [Sat, 11 Mar 2006 15:26:38 +0000 (16:26 +0100)]
the paraslash-0.2.11 release tarball

18 years agoparaslash 0.2.11 v0.2.11
Andre [Sat, 11 Mar 2006 15:23:15 +0000 (16:23 +0100)]
paraslash 0.2.11

18 years agowhitespace cleanup
Andre [Sat, 11 Mar 2006 03:40:55 +0000 (04:40 +0100)]
whitespace cleanup

18 years agoupdate NEWS
Andre [Fri, 10 Mar 2006 22:44:15 +0000 (23:44 +0100)]
update NEWS

18 years agodeleted: index.html
Andre [Fri, 10 Mar 2006 22:01:33 +0000 (23:01 +0100)]
deleted:  index.html

It crept in during the initial commit, and it is long outdated.

18 years agomysql_selector.c: rename get_dbinfo() to get_selector_info()
Andre [Fri, 10 Mar 2006 21:54:36 +0000 (22:54 +0100)]
mysql_selector.c: rename get_dbinfo() to get_selector_info()

18 years agomysql_selector.c: rename refresh_mmd_dbinfo() to refresh_selector_info()
Andre [Fri, 10 Mar 2006 21:49:33 +0000 (22:49 +0100)]
mysql_selector.c: rename refresh_mmd_dbinfo() to refresh_selector_info()

18 years agokill a macro which is only used once.
Andre [Fri, 10 Mar 2006 21:47:16 +0000 (22:47 +0100)]
kill a macro which is only used once.

Insert the text directly instead.

18 years agommd: rename dbt_change to selector_change
Andre [Fri, 10 Mar 2006 21:41:50 +0000 (22:41 +0100)]
mmd: rename dbt_change to selector_change

18 years agommd: rename dbt_num to selector_num
Andre [Fri, 10 Mar 2006 21:32:33 +0000 (22:32 +0100)]
mmd: rename dbt_num to selector_num

18 years agommd: rename dbinfo to selector_info
Andre [Fri, 10 Mar 2006 21:28:01 +0000 (22:28 +0100)]
mmd: rename dbinfo to selector_info

18 years agoSome more (trivial) "database tool" -> "audio file selector" conversions
Andre [Fri, 10 Mar 2006 21:20:31 +0000 (22:20 +0100)]
Some more (trivial) "database tool" -> "audio file selector" conversions

18 years agodbtool -> selector update for web documentation web page
Andre [Fri, 10 Mar 2006 21:00:57 +0000 (22:00 +0100)]
dbtool -> selector update for web documentation web page

18 years agoMore dbtool -> selector updates
Andre [Fri, 10 Mar 2006 20:57:25 +0000 (21:57 +0100)]
More dbtool -> selector updates

18 years agorename mysql.c to mysql_selector.c
Andre [Fri, 10 Mar 2006 20:53:05 +0000 (21:53 +0100)]
rename mysql.c to mysql_selector.c

Just to be consistent.

18 years agoREADME.mysql: cdt -> chs update
Andre [Fri, 10 Mar 2006 20:48:25 +0000 (21:48 +0100)]
README.mysql: cdt -> chs update

18 years agoRename E_BAD_DBTOOL to E_BAD_SELECTOR
Andre [Fri, 10 Mar 2006 20:13:49 +0000 (21:13 +0100)]
Rename E_BAD_DBTOOL to E_BAD_SELECTOR

18 years agoRename random_dbtool.c to random_selector.c
Andre [Fri, 10 Mar 2006 20:11:36 +0000 (21:11 +0100)]
Rename random_dbtool.c to random_selector.c

18 years agorename plm_dbtool.c to playlist_selector.c
Andre [Fri, 10 Mar 2006 20:01:50 +0000 (21:01 +0100)]
rename plm_dbtool.c to playlist_selector.c

18 years agoRename "dbtool" status item to "selector"
Andre [Fri, 10 Mar 2006 19:41:25 +0000 (20:41 +0100)]
Rename "dbtool" status item to "selector"

18 years agoChange doxygen file description from dbtool to selector
Andre [Fri, 10 Mar 2006 19:35:11 +0000 (20:35 +0100)]
Change doxygen file description from dbtool to selector

18 years agoAnother trivial rename
Andre [Fri, 10 Mar 2006 19:30:43 +0000 (20:30 +0100)]
Another trivial rename

18 years agogui,sdl_gui: change the prefix from "dbtool" to "selector"
Andre [Fri, 10 Mar 2006 19:29:03 +0000 (20:29 +0100)]
gui,sdl_gui: change the prefix from "dbtool" to "selector"

18 years agotrivial dbtool->selector renames
Andre [Fri, 10 Mar 2006 19:24:52 +0000 (20:24 +0100)]
trivial dbtool->selector renames

18 years agoRename some local variables in command.c
Andre [Fri, 10 Mar 2006 19:18:08 +0000 (20:18 +0100)]
Rename some local variables in command.c

18 years agorename struct dbtool to audio_file_selector
Andre [Fri, 10 Mar 2006 19:14:46 +0000 (20:14 +0100)]
rename struct dbtool to audio_file_selector

18 years agodb.h: Kill an unused enum
Andre [Fri, 10 Mar 2006 19:04:25 +0000 (20:04 +0100)]
db.h: Kill an unused enum

18 years agoRename com_cdt to com_chs
Andre [Fri, 10 Mar 2006 18:57:15 +0000 (19:57 +0100)]
Rename com_cdt to com_chs

chs: change (audio file) selector.

18 years agodbtool -> audio file selector renaming
Andre [Fri, 10 Mar 2006 18:49:49 +0000 (19:49 +0100)]
dbtool -> audio file selector renaming

This updates only Documentation and log messages.

18 years agoRename the --dbtool option to --selector
Andre [Fri, 10 Mar 2006 17:58:17 +0000 (18:58 +0100)]
Rename the --dbtool option to --selector

As two out of the three "database tools" of paraslash don't use a
database at all, let's call them "audio file selectors" instead.

18 years agoogg.c: don't use ogg_int64_t
Andre [Fri, 10 Mar 2006 02:12:23 +0000 (03:12 +0100)]
ogg.c: don't use ogg_int64_t

ssize_t should do equally well and avoids gcc warnings.

18 years agowhitespace fixes
Andre [Fri, 10 Mar 2006 01:47:26 +0000 (02:47 +0100)]
whitespace fixes

18 years agoaudiod: fix a memory leak in ringbuffer handling
Andre [Fri, 10 Mar 2006 01:32:12 +0000 (02:32 +0100)]
audiod: fix a memory leak in ringbuffer handling

Found by valgrind.

18 years agoweb/header2.html: update the changes menu item to point to gitweb.
Andre [Thu, 9 Mar 2006 15:47:31 +0000 (16:47 +0100)]
web/header2.html: update the changes menu item to point to gitweb.

From within the doxygen API reference that menu item still pointed
to the old cvs changelog which is no longer present.

18 years agoMerge branch 'no_colon_separators'
Andre [Thu, 9 Mar 2006 15:36:56 +0000 (16:36 +0100)]
Merge branch 'no_colon_separators'

18 years agoConvert demo-script to the new syntax without colons.
Andre [Thu, 9 Mar 2006 15:34:51 +0000 (16:34 +0100)]
Convert demo-script to the new syntax without colons.

As this won't work with paraslash-0.2.10, change the script
to download the git tarball.

18 years agoAdd a missing header file to Makefile.in
Andre [Thu, 9 Mar 2006 15:28:18 +0000 (16:28 +0100)]
Add a missing header file to Makefile.in

ipc.h was not included in the tarball. With this fix, the nightly git
snapshot compiles again.

18 years agomaintainer-clean: also remove skencil/*.ps skencil/*.pdf and doc
Andre [Wed, 8 Mar 2006 23:52:03 +0000 (00:52 +0100)]
maintainer-clean: also remove skencil/*.ps skencil/*.pdf and doc

18 years agoheader2.html is needed by doxygen
Andre [Wed, 8 Mar 2006 23:40:44 +0000 (00:40 +0100)]
header2.html is needed by doxygen

18 years agoAdd Ian McDonald to CREDITS
Andre [Wed, 8 Mar 2006 23:17:35 +0000 (00:17 +0100)]
Add Ian McDonald to CREDITS

Also, add a copyright notice at the top of dccp.c dccp.h dccp_recv.c and dccp_send.c

18 years agoAdd GPL headers for dccp.c dccp.h, dccp_recv.c, and dccp_send.c
Andre [Wed, 8 Mar 2006 23:08:01 +0000 (00:08 +0100)]
Add GPL headers for dccp.c dccp.h, dccp_recv.c, and dccp_send.c

18 years agoFirst draft of the dccp sender/receiver pair.
Andre [Wed, 8 Mar 2006 23:04:15 +0000 (00:04 +0100)]
First draft of the dccp sender/receiver pair.

18 years agokill a pointless "optind = 1".
Andre [Wed, 8 Mar 2006 17:45:01 +0000 (18:45 +0100)]
kill a pointless "optind = 1".

18 years agoMerge branch 'xf_64_compile_warning_fixes'
Andre [Tue, 7 Mar 2006 13:20:09 +0000 (14:20 +0100)]
Merge branch 'xf_64_compile_warning_fixes'

18 years agoREADME: Mention the name of some debian packages
Andre [Tue, 7 Mar 2006 00:47:28 +0000 (01:47 +0100)]
README: Mention the name of some debian packages

libasound2-dev is needed for para_play, ogg vorbis support requires
libogg-dev and libvorbis-dev. Thanks to Steffen Klassert for this info.

18 years agoogg.c: use %z modifier
Andre [Tue, 7 Mar 2006 00:13:12 +0000 (01:13 +0100)]
ogg.c: use %z modifier

18 years agooggdec.c: %d -> %zd fixes
Andre [Tue, 7 Mar 2006 00:09:39 +0000 (01:09 +0100)]
oggdec.c: %d -> %zd fixes

18 years agoanother %d -> %zd fix
Andre [Mon, 6 Mar 2006 20:57:27 +0000 (21:57 +0100)]
another %d -> %zd fix

Noticed by Steffen Klassert

18 years agonet.h: use proper type for the addrlen parameter of para_accept() also in prototype
Andre [Mon, 6 Mar 2006 20:51:19 +0000 (21:51 +0100)]
net.h: use proper type for the addrlen parameter of para_accept() also in prototype

An earlier patch changed that parameter from size_t to socklen_t
but missed to update also the corresponding prototype in net.h. Thanks to
Steffen Klassert for pointing this out.

18 years agoSimplify for_each_line()
Andre [Sun, 5 Mar 2006 13:18:24 +0000 (14:18 +0100)]
Simplify for_each_line()

It is always called with the num parameter being zero. So nuke that
parameter and update the docs.

18 years agoKill an outdated comment..
Andre [Sun, 5 Mar 2006 12:59:39 +0000 (13:59 +0100)]
Kill an outdated comment..

..which stated that filter command line options should be separated by colons.

18 years agopara_filter: Update --help
Andre [Sun, 5 Mar 2006 12:49:11 +0000 (13:49 +0100)]
para_filter: Update --help

The help text still used the old syntax with colons as separators. Fix that.

18 years agopara_filter: Fix and improve help text for --list_filters
Andre [Sun, 5 Mar 2006 12:40:43 +0000 (13:40 +0100)]
para_filter: Fix and improve help text for --list_filters

The old help text still used colons as separators. Mark those filters
which have their own command line parser with a star in the filter
list. Some trivial whitespace fixes also.

18 years agouse %zd instead of %d for size_t
Andre [Sun, 5 Mar 2006 12:14:09 +0000 (13:14 +0100)]
use %zd instead of %d for size_t

As of version 2.1 of glibc there is the %z modifier, so use it.
This avoids many warnings of the type

warning: int format, different type arg

on x86_64.

18 years agopara_accept(): Use socklen_t instead of size_t
Andre [Sun, 5 Mar 2006 12:08:35 +0000 (13:08 +0100)]
para_accept(): Use socklen_t instead of size_t

Fixes the following warning on x86_64:

net.c:76: warning: int format, different type arg (arg 4)

18 years ago(no log message)
Andre [Thu, 2 Mar 2006 21:33:14 +0000 (22:33 +0100)]
(no log message)

18 years agokill another superfluous '#include "gcc-compat.h"'
Andre [Thu, 2 Mar 2006 17:10:11 +0000 (18:10 +0100)]
kill another superfluous '#include "gcc-compat.h"'

Commit 4b4c68de8d7390f966e46d9402d5499d2e8ee227 missed one of these.

18 years agofix off-by-one error
Andre [Thu, 2 Mar 2006 14:08:38 +0000 (15:08 +0100)]
fix off-by-one error

Also, make "bufsize" const instead of static.

18 years agono need to include gcc-compat.h twice
Andre [Mon, 27 Feb 2006 09:19:39 +0000 (10:19 +0100)]
no need to include gcc-compat.h twice

It gets already included from para.h.

18 years agomake header_len an integer
Andre [Sun, 26 Feb 2006 17:03:54 +0000 (18:03 +0100)]
make header_len an integer

This fixes the following warning:

ortp_send.c:169: warning: pointer targets in passing argument 1 of 'af->get_header_info' differ in signedness

18 years agosimplify open_audiod_pipe(), remove a trailing newline which caused
Andre [Sun, 26 Feb 2006 16:17:05 +0000 (17:17 +0100)]
simplify open_audiod_pipe(), remove a trailing newline which caused
the top window to flicker if para_audiod is not running.

18 years agoMerge branch 'no_colon_separators'
Andre [Sat, 25 Feb 2006 09:16:22 +0000 (10:16 +0100)]
Merge branch 'no_colon_separators'

18 years agoMerge branch 'para_play_fixes'
Andre [Sat, 25 Feb 2006 09:15:54 +0000 (10:15 +0100)]
Merge branch 'para_play_fixes'

18 years agoUse whitespace instead of colons to separate receiver/filter args
Andre [Fri, 24 Feb 2006 15:13:57 +0000 (16:13 +0100)]
Use whitespace instead of colons to separate receiver/filter args

This is much nicer but the receiver/filter argument must now be quoted if any
options are present.

18 years agoanother typo in comment
Andre [Fri, 24 Feb 2006 13:09:42 +0000 (14:09 +0100)]
another typo in comment

ipc.c:44: Warning: expected whitespace after param command

18 years agoconfigurable input buffer size and prebuffering
Andre [Fri, 24 Feb 2006 11:21:33 +0000 (12:21 +0100)]
configurable input buffer size and prebuffering

18 years agoplay.c: pcm_write() aborts on errors. No need to check the return value.
Andre [Thu, 23 Feb 2006 17:34:59 +0000 (18:34 +0100)]
play.c: pcm_write() aborts on errors. No need to check the return value.

18 years agoFix --device bug
Andre [Thu, 23 Feb 2006 17:29:45 +0000 (18:29 +0100)]
Fix --device bug

Duuuh, the --device option never worked because "plug:swmix" was harcoded
in play.c instead of using the value from the configuration. Even worse,
the default in play.ggo was _also_ set to "plug:swmix". Replace that by
"plughw:0,0".

This patch also simplifies and optimizes play_pcm().

Anyway, software mixing is still recommended. Here's an aprropriate
/etc/asound.conf:

---------------------------------------------------- /etc/asound.conf
pcm.swmix {
type dmix
# any unique number here
ipc_key 313
        ipc_perm 0666

slave {
pcm "hw:0,0"
# these settings may require tweaking for different sound
# cards; this is for the Powerbook's built-in snd-powermac
# probably not required at all for well-behaved cards...
period_time 0
period_size 1024
buffer_size 8192
# mentioning rate fixes wrong speed/pitch in native ALSA stuff
# rate 44100
}
}

pcm.dsp0 {
type plug
slave.pcm "swmix"
}

ctl.mixer0 {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "swmix"
}
---------------------------------------------------------------------

a Use the
: Use a large input
buffer and For one, the

18 years agofix another typo in comment
Andre [Wed, 22 Feb 2006 12:06:14 +0000 (13:06 +0100)]
fix another typo in comment

18 years agoannounce gitweb
Andre [Wed, 22 Feb 2006 11:48:07 +0000 (12:48 +0100)]
announce gitweb