From: Andre Date: Wed, 17 May 2006 19:22:59 +0000 (+0200) Subject: major afs cleanup X-Git-Tag: v0.2.14~108 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=8b2c02c8d6255583982e767374d39375b3380c4d;hp=8b2c02c8d6255583982e767374d39375b3380c4d;p=paraslash.git 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. ---