paraslash.git
16 years agoMakefile.in: Add afs_command_list.man to the list of server commands.
Andre Noll [Sun, 9 Sep 2007 15:16:23 +0000 (17:16 +0200)]
Makefile.in: Add afs_command_list.man to the list of server commands.

16 years agovss.c: Introduce get_audio_file_info().
Andre Noll [Sun, 9 Sep 2007 12:56:41 +0000 (14:56 +0200)]
vss.c: Introduce get_audio_file_info().

This is going to be used from within aft's com_add() which ATM only
supports mp3.

16 years agoafh.h: Kill unused SUPPORTED_AUDIO_FORMATS_ARRAY.
Andre Noll [Sun, 9 Sep 2007 12:47:59 +0000 (14:47 +0200)]
afh.h: Kill unused SUPPORTED_AUDIO_FORMATS_ARRAY.

16 years agoafs.c: Kill unused struct callback_data.
Andre Noll [Sun, 9 Sep 2007 11:15:52 +0000 (13:15 +0200)]
afs.c: Kill unused struct callback_data.

16 years agoAdd a .gitignore file.
Andre Noll [Sun, 9 Sep 2007 11:13:03 +0000 (13:13 +0200)]
Add a .gitignore file.

16 years agoClean up afs.c.
Andre Noll [Sun, 9 Sep 2007 11:12:25 +0000 (13:12 +0200)]
Clean up afs.c.

- Update documentation.
- Kill some dead code.
- Reorder functions.

16 years agoAdd afs.cmd.
Andre Noll [Sun, 9 Sep 2007 09:38:20 +0000 (11:38 +0200)]
Add afs.cmd.

16 years agoMake afs commands work.
Andre Noll [Sat, 8 Sep 2007 23:17:50 +0000 (01:17 +0200)]
Make afs commands work.

This required a rewrite of send_callback_request().

The patch also includes the rename of get_socket() to get_stream_socket()
which takes the new domain parameter, so that it may be used for both
AF_INET and AF_UNIX sockets.

16 years agoIntroduce template commands for command_util.sh.
Andre Noll [Sat, 8 Sep 2007 19:50:57 +0000 (21:50 +0200)]
Introduce template commands for command_util.sh.

And use them to produce afs_command_list.[ch] which also contains all
blob commands without duplicating all the common information in the
new afs.cmd file.

Change para_server's help command to display the new commands. These
are not yet working because the callback code is not yet functional.

16 years agoImplement server side afs callbacks.
Andre Noll [Sat, 8 Sep 2007 16:34:37 +0000 (18:34 +0200)]
Implement server side  afs callbacks.

Not yet working as the code for contacting afs is still missing.

16 years agoMake struct signal_task generic and make afs use it.
Andre Noll [Sat, 8 Sep 2007 13:49:05 +0000 (15:49 +0200)]
Make struct signal_task generic and make afs use it.

16 years agopara_server: Initialize the new afs.
Andre Noll [Sat, 8 Sep 2007 11:37:11 +0000 (13:37 +0200)]
para_server: Initialize the new afs.

16 years agoFix some signedness warnings.
Andre Noll [Sat, 8 Sep 2007 10:09:49 +0000 (12:09 +0200)]
Fix some signedness warnings.

16 years agoMerge the new afs code.
Andre Noll [Sat, 8 Sep 2007 09:17:19 +0000 (11:17 +0200)]
Merge the new afs code.

16 years agoafh.h: Reduce AUDIO_FILE_INFO_SIZE.
Andre Noll [Sat, 8 Sep 2007 07:25:25 +0000 (09:25 +0200)]
afh.h: Reduce AUDIO_FILE_INFO_SIZE.

As the audio file info string is going to be stored on disk, its size
starts to matter.

16 years agoipc.c: Improve para_semop().
Andre Noll [Sat, 8 Sep 2007 07:22:05 +0000 (09:22 +0200)]
ipc.c: Improve para_semop().

It's kind of silly to retry the semop 500 times. Just check if sempop()
was interrupted and retry in this case. Otherwise, error out.

16 years agoRename afs.[ch] to afs_common.[ch].
Andre Noll [Sat, 8 Sep 2007 07:14:27 +0000 (09:14 +0200)]
Rename afs.[ch] to afs_common.[ch].

As a prepraration for merging the new afs.

16 years agoaudiod: free pointer to config file path.
Andre Noll [Tue, 4 Sep 2007 20:21:16 +0000 (22:21 +0200)]
audiod: free pointer to config file path.

As it's no longer needed once the config file was parsed. Also, rename cf to
config_file.

16 years agoaudiod: Fix a memory leak.
Andre Noll [Tue, 4 Sep 2007 20:16:06 +0000 (22:16 +0200)]
audiod: Fix a memory leak.

If the config file doesn't exist, configfile_exists() returnes NULL.
The old code leaked a pointer to the config file in this case.

This function is only called once at startup, so the leak is benign.
Morover, kill the static variable and the check if (!config_file) which
is always true.

16 years agoaudiod: Simplify two log messages.
Andre Noll [Tue, 4 Sep 2007 20:07:22 +0000 (22:07 +0200)]
audiod: Simplify two log messages.

Trivial cleanup.

16 years agonet.c: Improve documentation of struct crypt_data.
Andre Noll [Sun, 2 Sep 2007 15:12:11 +0000 (17:12 +0200)]
net.c: Improve documentation of struct crypt_data.

16 years agonet.c: Fix a fd leak in create_local_socket().
Andre Noll [Sun, 2 Sep 2007 14:57:15 +0000 (16:57 +0200)]
net.c: Fix a fd leak in create_local_socket().

The old code leaked the open socket fd in case of errors.

16 years agonet.c: Fix a typo in the documentation.
Andre Noll [Sun, 2 Sep 2007 14:52:33 +0000 (16:52 +0200)]
net.c: Fix a typo in the documentation.

16 years ago[TRIVIAL]: rename create_pf_socket() to create_local_socket().
Andre Noll [Sun, 2 Sep 2007 14:43:45 +0000 (16:43 +0200)]
[TRIVIAL]: rename create_pf_socket() to create_local_socket().

16 years agoFix some unsigned vs. size_t issues.
Andre Noll [Mon, 20 Aug 2007 17:51:18 +0000 (19:51 +0200)]
Fix some unsigned vs. size_t issues.

vss_het_header() took a unsigned while vss_get_chunk() takes
a size_t. Change vss_het_header() and fix up the callers.

16 years agofd.h: Kill two dead function prototypes.
Andre Noll [Mon, 13 Aug 2007 00:37:27 +0000 (02:37 +0200)]
fd.h: Kill two dead function prototypes.

16 years agoafh.h: Minor documentation improvements.
Andre Noll [Sun, 12 Aug 2007 23:34:03 +0000 (01:34 +0200)]
afh.h: Minor documentation improvements.

16 years agomysql_selector.c: Check return value of regcomp().
Andre Noll [Sun, 12 Aug 2007 23:03:43 +0000 (01:03 +0200)]
mysql_selector.c: Check return value of regcomp().

16 years agoNEWS update.
Andre Noll [Sun, 12 Aug 2007 22:49:37 +0000 (00:49 +0200)]
NEWS update.

16 years agodccp_send.c: Minor cleanups.
Andre Noll [Sun, 12 Aug 2007 22:10:23 +0000 (00:10 +0200)]
dccp_send.c: Minor cleanups.

Fix a missing newline and clarify docu of dccp_write().

16 years agodccp_send.c: Simplify send_queued_chunks().
Andre Noll [Sun, 12 Aug 2007 21:36:51 +0000 (23:36 +0200)]
dccp_send.c: Simplify send_queued_chunks().

The dccp socket is non-blocking, so there's no need to
check for writability.

16 years agodccp_send.c: Implement chunk queuing for dccp.
Andre Noll [Sun, 12 Aug 2007 21:26:27 +0000 (23:26 +0200)]
dccp_send.c: Implement chunk queuing for dccp.

As Gerrit mentioned, it might be a good idea to use chunk
queueing also for dccp. This patch uses the new cq_xxx()
abstractions in the same way as the http sender.

Not heavily tested yet.

16 years agoMove chunk_queue stuff to own files chunk_queue.[ch].
Andre Noll [Sun, 12 Aug 2007 17:44:33 +0000 (19:44 +0200)]
Move chunk_queue stuff to own files chunk_queue.[ch].

This completes the isolation of the chunk queueing code. In this form it may be
used also by other senders.

16 years agostruct http_client: Use a _pointer_ to the chunk_queue.
Andre Noll [Sun, 12 Aug 2007 16:47:50 +0000 (18:47 +0200)]
struct http_client: Use a _pointer_ to the chunk_queue.

This way, http_send.c no longer needs to know the size
of struct chunk_queue(). Allocation of the proper struct
is now done in cq_init().

16 years agoAbstract out chunk_queue code.
Andre Noll [Sun, 12 Aug 2007 16:36:53 +0000 (18:36 +0200)]
Abstract out chunk_queue code.

This moves the chunk handling code to separate functions cq_foo().  They
take pointers to a chunk queue, which makes them orthogonal to the rest of
http_send.c.

16 years agoenqueue_chunk(): pass a struct chunk_queue * instead of struct http_client *.
Andre Noll [Sun, 12 Aug 2007 14:31:24 +0000 (16:31 +0200)]
enqueue_chunk(): pass a struct chunk_queue * instead of struct http_client *.

16 years agoIntroduce struct chunk_queue.
Andre Noll [Sun, 12 Aug 2007 14:27:03 +0000 (16:27 +0200)]
Introduce struct chunk_queue.

First step to abstract out chunk queueing.

16 years agoMerge branch 'chunk_queue' of /home/maan/scm/paraslash_meins/paraslash into tmp
Andre Noll [Sun, 12 Aug 2007 13:56:20 +0000 (15:56 +0200)]
Merge branch 'chunk_queue' of /home/maan/scm/paraslash_meins/paraslash into tmp

16 years agoortp_recv: Always set default jitter compensation, use zero as default.
Andre Noll [Sun, 12 Aug 2007 13:25:50 +0000 (15:25 +0200)]
ortp_recv: Always set default jitter compensation, use zero as default.

This makes the default configuration work again with
ortp-0.13.1.

16 years agoRewrite chunk queueing.
Andre Noll [Wed, 8 Aug 2007 22:00:45 +0000 (00:00 +0200)]
Rewrite chunk queueing.

Since paraslash-0.2.16 the audio file is mmapped, so it is no longer neccessary
to make a copy of the chunk data in case a chunk can not be sent immediately
because the write would block. Just remember the chunk number and the number of
bytes of that chunk which were sent (non-zero in case of short writes).

The chunk data can then be retrieved by the new vss_get_chunk() function.

16 years agohttp_send.c: Trivial whitespace and spelling cleanups.
Andre Noll [Tue, 7 Aug 2007 21:13:05 +0000 (23:13 +0200)]
http_send.c: Trivial whitespace and spelling cleanups.

16 years agoDon't use depricated xxx_cmdline_parser_configfile().
Andre Noll [Mon, 6 Aug 2007 20:38:38 +0000 (22:38 +0200)]
Don't use depricated xxx_cmdline_parser_configfile().

Switch to the equivalent xxx_cmdline_parser_config_file() which takes
a pointer to the parser params.

16 years agoMerge /home/maan/scm/paraslash_fml/paraslash
Andre Noll [Mon, 6 Aug 2007 18:47:27 +0000 (20:47 +0200)]
Merge /home/maan/scm/paraslash_fml/paraslash

16 years agopara_malloc(), para_realloc(): Check for zero size allocations.
Andre Noll [Mon, 6 Aug 2007 18:45:19 +0000 (20:45 +0200)]
para_malloc(), para_realloc(): Check for zero size allocations.

16 years agodccp sender: Keep polling until an entry becomes free (Gerrit Renker).
Andre Noll [Mon, 6 Aug 2007 14:09:28 +0000 (16:09 +0200)]
dccp sender: Keep polling until an entry becomes free (Gerrit Renker).

If write() on the dccp fd fails with EAGAIN, the current code retries
100 times and then gives up, returning -E_DCCP_WRITE which causes a
shutdown of the dccp connection.

CCID3 has a sending wait queue which fills up and is emptied
asynchronously. The EAGAIN case means that there is currently no space
in the wait queue, but this can change at any moment and is thus not
an error condition. So keep polling until an entry becomes free.

16 years agoaudioc: fix bufsize
Andre Noll [Tue, 10 Jul 2007 20:11:58 +0000 (22:11 +0200)]
audioc: fix bufsize

This bug was introduced in ae0e4594c6a0312c5b4b4c0bde86f9c12253d11b:
We computed the bufsize from the conf struct before initializing it.
Fix is trivial.

16 years agoconfigure.ac: Add check for alarm().
Andre Noll [Sat, 7 Jul 2007 18:30:29 +0000 (20:30 +0200)]
configure.ac: Add check for alarm().

16 years agoringbuffer.c: fix two typos.
Andre Noll [Sat, 7 Jul 2007 18:25:33 +0000 (20:25 +0200)]
ringbuffer.c: fix two typos.

16 years agotrivial doxygen cleanups
Andre Noll [Sat, 7 Jul 2007 18:21:48 +0000 (20:21 +0200)]
trivial doxygen cleanups

Replace @param by \param and fix punctuation.

16 years agomysql_selector: reset mysql_lock to zero after destroying the lock.
Andre Noll [Sat, 7 Jul 2007 18:07:20 +0000 (20:07 +0200)]
mysql_selector: reset mysql_lock to zero after destroying the lock.

16 years agoNEWS update
Andre Noll [Sat, 7 Jul 2007 17:30:08 +0000 (19:30 +0200)]
NEWS update

16 years agonet.h: add missing __printf_2_3 attribute to send_va_buffer()
Andre Noll [Sat, 7 Jul 2007 17:12:35 +0000 (19:12 +0200)]
net.h: add missing __printf_2_3 attribute to send_va_buffer()

16 years agomysql_selector.c: introduce the myslq lock
Andre Noll [Sat, 7 Jul 2007 17:11:45 +0000 (19:11 +0200)]
mysql_selector.c: introduce the myslq lock

This fixes a race condition in para_server:

parent child

real_query
real_query
mysql_store_result

This could cause para_server to hang in case the child process issued
a query which does not yield a result. It's hard to hit though. Fix is
to take the lock before the call to real_query, and release it after
mysql_store_result().

The patch also fixes a format string bug which was introduced by the patch
that switched to my_ulonglong for suitable variables in mysql_selector.c.
These need "%lli".

16 years agoconfigure.ac: extend checks for header, functions, etc.
Andre Noll [Fri, 6 Jul 2007 09:15:39 +0000 (11:15 +0200)]
configure.ac: extend checks for header, functions, etc.

One should really run autoscan from time to time...

16 years agodccp_send.c: Replace bzero() by memset()
Andre Noll [Fri, 6 Jul 2007 07:49:18 +0000 (09:49 +0200)]
dccp_send.c: Replace bzero() by memset()

bzero() is deprecated.

16 years agoortp_send.c: fix a gcc warning
Andre Noll [Wed, 4 Jul 2007 14:41:01 +0000 (16:41 +0200)]
ortp_send.c: fix a gcc warning

ortp_send.c:187: warning: passing argument 1 of 'vss_get_header' from incompatible pointer type

because vss_get_header expects an unsigned and we were passing a
size_t which is a different type e.g. for ppc.

16 years agoremove COPYING from the files to be converted by grutatxt
Andre Noll [Wed, 4 Jul 2007 12:42:32 +0000 (14:42 +0200)]
remove COPYING from the files to be converted by grutatxt

this is also not needed as html.

16 years agoremove GPL from the files to be converted by grutatxt
Andre Noll [Wed, 4 Jul 2007 12:33:08 +0000 (14:33 +0200)]
remove GPL from the files to be converted by grutatxt

The web page links directly to www.gnu.org, no need to provide an html
version of this file.

16 years agoMerge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash
Andre Noll [Wed, 4 Jul 2007 12:20:14 +0000 (14:20 +0200)]
Merge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash

16 years agofix trivial typo
Andre Noll [Tue, 3 Jul 2007 18:35:26 +0000 (20:35 +0200)]
fix trivial typo

gengetopt already adds a ":" in the help output

16 years agomake gengetopt-2.20 happy
Andre Noll [Tue, 3 Jul 2007 18:32:50 +0000 (20:32 +0200)]
make gengetopt-2.20 happy

16 years agoweb/license.html: make it clear that paraslash is licensed under the GPL V2
Andre Noll [Sun, 1 Jul 2007 00:05:41 +0000 (02:05 +0200)]
web/license.html: make it clear that paraslash is licensed under the GPL V2

As today the GPL V3 was published, the term "GPL" (without mentioning
a version number) might be misleading.

16 years agoreplace standard GPL header by a one-line pointer to COPYING
Andre Noll [Thu, 28 Jun 2007 09:38:37 +0000 (11:38 +0200)]
replace standard GPL header by a one-line pointer to COPYING

16 years agoCOPYING: replace the short GPL text by the full version 2 license
Andre Noll [Mon, 25 Jun 2007 16:06:47 +0000 (18:06 +0200)]
COPYING: replace the short GPL text by the full version 2 license

16 years agotrivial typo fix
Andre Noll [Mon, 25 Jun 2007 15:58:47 +0000 (17:58 +0200)]
trivial typo fix

16 years agoMerge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash
Andre Noll [Mon, 11 Jun 2007 10:06:54 +0000 (12:06 +0200)]
Merge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash

16 years agoNEWS update
Andre Noll [Sun, 10 Jun 2007 23:53:59 +0000 (01:53 +0200)]
NEWS update

16 years agoclean up error.h
Andre Noll [Sun, 10 Jun 2007 23:45:51 +0000 (01:45 +0200)]
clean up error.h

It contained quite some unused error codes. This patch gets rid of
them and thus saves some space in the resulting binaries.

More importantly, there were two instances where a source file used
an error value of another source file (which is ok), but the object
file of that other source file would not get linked into the resulting
binary (which is not ok):

- aac_afh.c used E_AACDEC_INIT, which is not contained in
  para_server

- http_recv.c used E_OVERRUN which is defined only if ortp
  support was compiled in.

The patch also fixes another bug in the ogg vorbis audio format handler
where (the positive value) E_STREAM_PAGEIN was returned instead of
-E_STREAM_PAGEIN in case ogg_stream_pagein() failed.

16 years agoogg_afh.c: add documentation of struct ogg_datasource
Andre Noll [Sun, 3 Jun 2007 21:58:44 +0000 (23:58 +0200)]
ogg_afh.c: add documentation of struct ogg_datasource

16 years agoallow variable arguments in LOG functions to be omitted or empty.
Andre Noll [Sun, 3 Jun 2007 19:45:20 +0000 (21:45 +0200)]
allow variable arguments in LOG functions to be omitted or empty.

If the variable arguments are omitted or empty, the '##' operator
causes the preprocessor to remove the comma before it.

16 years agodccp_send.c: Fix type of "header_len" on x86_64
Andre Noll [Fri, 1 Jun 2007 09:53:11 +0000 (11:53 +0200)]
dccp_send.c: Fix type of "header_len" on x86_64

vss_get_header wants an unsigned, not a size_t. Fixes

dccp_send.c:170: warning: passing arg 1 of `vss_get_header' from incompatible pointer type

16 years agoTrivial %d -> %zu format string fix
Andre Noll [Fri, 1 Jun 2007 09:50:02 +0000 (11:50 +0200)]
Trivial %d -> %zu format string fix

It fixes

command.c:879: warning: int format, different type arg (arg 4)

16 years agofade: cosmetic cleanups
Andre Noll [Sat, 26 May 2007 21:02:18 +0000 (23:02 +0200)]
fade: cosmetic cleanups

always return negative values on errors, some other trivial changes.

16 years agofade.c: simplify open_mixer()
Andre Noll [Sat, 26 May 2007 20:47:48 +0000 (22:47 +0200)]
fade.c: simplify open_mixer()

open() returns -1 on errors anyway.

16 years agofade.c: replace args_info by conf
Andre Noll [Sat, 26 May 2007 20:43:15 +0000 (22:43 +0200)]
fade.c: replace args_info by conf

to be consistent with the other paraslash applications that also use
conf for the gengetopt args_info struct.

16 years agofade.c: Fix some signed issues
Andre Noll [Sat, 26 May 2007 20:39:23 +0000 (22:39 +0200)]
fade.c: Fix some signed issues

Don't sleep at all if the sleep time passed via comamnd line args
are negative.

16 years agofix some signed warnings in aac and mp3 decoders
Andre Noll [Sat, 26 May 2007 20:25:44 +0000 (22:25 +0200)]
fix some signed warnings in aac and mp3 decoders

Only trivial stuff.

16 years agobe more carful wrt. signed vs. unsigned argument passing
Andre Noll [Sat, 26 May 2007 19:38:36 +0000 (21:38 +0200)]
be more carful wrt. signed vs. unsigned argument passing

16 years agoerror.h: move E_BAD_USER from audiod_command to command error list
Andre Noll [Mon, 21 May 2007 20:53:23 +0000 (22:53 +0200)]
error.h: move E_BAD_USER from audiod_command to command error list

Dooh. This caused a segfault in the server's child if an unkown user
connected. Fortunately, this happened right before the process exited
anyway, so it's not a security issue.

16 years agoadd -Wbad-function-cast to +CPPFLAGS and fix two compiler warnings
Andre Noll [Sat, 19 May 2007 11:19:27 +0000 (13:19 +0200)]
add -Wbad-function-cast to +CPPFLAGS and fix two compiler warnings

16 years agoaac: fix some signedness warnings
Andre Noll [Sat, 19 May 2007 09:34:16 +0000 (11:34 +0200)]
aac: fix some signedness warnings

16 years agoalsa_write.ggo: use "default" instead of "plughw:0,0" as the default device
Andre Noll [Sat, 12 May 2007 15:17:45 +0000 (17:17 +0200)]
alsa_write.ggo: use "default" instead of "plughw:0,0" as the default device

This is what aplay also uses as the default. This change fixes playback of 48
kHz wav files if software mixing is used.

17 years agonew codename, reset version to git
Andre Noll [Thu, 5 Apr 2007 14:37:33 +0000 (16:37 +0200)]
new codename, reset version to git

17 years agothe paraslash-0.2.16 release tarball
Andre Noll [Thu, 5 Apr 2007 14:33:31 +0000 (16:33 +0200)]
the paraslash-0.2.16 release tarball

17 years agoparaslash 0.2.16 v0.2.16
Andre Noll [Thu, 5 Apr 2007 14:32:17 +0000 (16:32 +0200)]
paraslash 0.2.16

17 years agofix some compiler warnings on Mac OS
Andre Noll [Wed, 4 Apr 2007 08:33:00 +0000 (10:33 +0200)]
fix some compiler warnings on Mac OS

add two casts to make gcc stfu.

17 years agoMakefile.in: target "install" depends on target "man"
Andre Noll [Wed, 4 Apr 2007 08:31:57 +0000 (10:31 +0200)]
Makefile.in: target "install" depends on target "man"

17 years agocompress.c: fix serious typo
Andre Noll [Wed, 4 Apr 2007 08:24:29 +0000 (10:24 +0200)]
compress.c: fix serious typo

We always compute the peak using the _adjusted_ sample value.

17 years agofix compress filter for big endian systems
Andre Noll [Wed, 4 Apr 2007 08:22:10 +0000 (10:22 +0200)]
fix compress filter for big endian systems

This time for real. It's almost the same patch as the one just
reverted, but this one is tested on both ppc and x86.

17 years agoRevert "fix compress filter for big endian machines"
Andre Noll [Mon, 2 Apr 2007 15:16:54 +0000 (17:16 +0200)]
Revert "fix compress filter for big endian machines"

This reverts commit 85225bb1292d1885e0261fb5109d18ecd584c267.

because it broke little endian (x86) machines. The issue needs
further investigation...

17 years agofix compress filter for big endian machines
Andre Noll [Fri, 30 Mar 2007 15:14:04 +0000 (17:14 +0200)]
fix compress filter for big endian machines

This was broken since day one as it depended on little-endianness. Fix
it by checking the byte sex in configure and let the decoders
produce host endian 16 bit audio output by using the new
write_int16_host_endian() inline function in filter.h

This allows to omit the ugly byte-swapping in osx_write we've had
before.

17 years agoMerge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash
Andre Noll [Mon, 26 Mar 2007 12:51:03 +0000 (14:51 +0200)]
Merge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash

Conflicts:

mp3_afh.c

Fix the conflict and add more detailed error message to para_mmap().

17 years agodo not copy the audio file header
Andre Noll [Sun, 25 Mar 2007 14:34:20 +0000 (16:34 +0200)]
do not copy the audio file header

It's present in the memory map anyway. So instead of making a
copy, store the position of the header (always zero for now) in
mmd->audio_format_info.

17 years agokill some more unneeded includes
Andre Noll [Sat, 24 Mar 2007 21:24:36 +0000 (22:24 +0100)]
kill some more unneeded includes

17 years agoaac_afh.c: Get rid of some superfluous includes
Andre Noll [Sat, 24 Mar 2007 21:22:57 +0000 (22:22 +0100)]
aac_afh.c: Get rid of some superfluous includes

17 years agomp3_afh.c: set bitrate, frequency and channels of struct audio_file_info
Andre Noll [Sat, 24 Mar 2007 21:22:31 +0000 (22:22 +0100)]
mp3_afh.c: set bitrate, frequency and channels of struct audio_file_info

Also, get rid of some superflous includes.

17 years agoogg_afh.c: store bitrate, frequency and channels in struct audio_file info
Andre Noll [Sat, 24 Mar 2007 21:20:29 +0000 (22:20 +0100)]
ogg_afh.c: store bitrate, frequency and channels in struct audio_file info

This patch also contains some other improvements:

- make sure that we never write beyond the end of the chunk table
- get rid of some unneeded includes
- kill pointless raw_total variable
- get rid of time_total, vi_sampling_rate and vi_bitrate and use
  the corresponding members of struct audio_file_info directly

17 years agoMerge /home/maan/scm/paraslash_fml/paraslash
Andre Noll [Sat, 24 Mar 2007 17:25:08 +0000 (18:25 +0100)]
Merge /home/maan/scm/paraslash_fml/paraslash

17 years agoaac_afh.c: compute bitrate and store it in the new fields of struct audio format
Andre Noll [Sat, 24 Mar 2007 17:16:17 +0000 (18:16 +0100)]
aac_afh.c: compute bitrate and store it in the new fields of struct audio format

Also, add this info in afi->info_string

17 years agoafh: add additional fields channels, frequency, and bitrate to struct audio_format
Andre Noll [Sat, 24 Mar 2007 17:14:57 +0000 (18:14 +0100)]
afh: add additional fields channels, frequency, and bitrate to struct audio_format

The idea is that these quantieties are computed by each audio format handler
anyway. So create a common place for them to store that info. This way it
may be used by vss and by afs.