]> git.tuebingen.mpg.de Git - paraslash.git/commit
major afs cleanup
authorAndre <maan@p133.(none)>
Wed, 17 May 2006 19:22:59 +0000 (21:22 +0200)
committerAndre <maan@p133.(none)>
Wed, 17 May 2006 19:22:59 +0000 (21:22 +0200)
commit8b2c02c8d6255583982e767374d39375b3380c4d
treece6951066575866633caed748388180c42373a5f
parent298ad3958d76fc775dfd0503ae4b1e43dce70f04
major afs cleanup

This patch  makes afs.c the only user of the audio format handler
arry afl[] in order to completely separate audio format handling from
audio file sending.

This is achieved by providing the new helper functions afs_get_header()
and afs_chunk_time(). audio file senders may call these functions
without knowledge of struct audio_format. This allows to get rid of
the "af" parameter for the pre_select and post_select functions of
struct sender.

Related to this cleanup is the removal of match_audio_file_name() from db.c
which also depended on afl[]. This function was essentially identical to
afs.c's guess_audio_format(), so make the latter public and use it from
within db.c.
afs.c
afs.h
audiod.c
db.c
dccp_send.c
http_send.c
ortp_send.c
send.h
server.c