aac_afh.c: compute bitrate and store it in the new fields of struct audio format
[paraslash.git] / NEWS
1 NEWS
2 ====
3
4 ------------------------------------------
5 0.?.? (to be announced) "neural discharge"
6 ------------------------------------------
7
8 The main change in this release is the major audio format handler
9 cleanup which removes some similar/duplicate code and makes it easier
10 to implement plugins for other audio formats. Of course, the usual mix
11 of other improvements/changes/bugfixes also made it into the release.
12
13         - simplified audio format handlers (most of the handling functions
14           were moved one layer up to the virtual streaming system).
15         - para_server uses mmap to read audio files
16         - repositioning of mp3 streams is much faster, in particular for
17           jumping near the end of large mp3 files.
18         - permission flags DB_READ,DB_WRITE have been renamed to AFS_READ
19           and AFS_WRITE.
20         - fix a bug in para_filter that caused decoding of aac files
21           to start only after a few seconds.
22         - fix osx_writer hangs
23
24 -----------------------------------------
25 0.2.15 (2007-02-16) "inductive resonance"
26 -----------------------------------------
27
28 Minor improvements, more documentation and a bunch of bug fixes.
29
30         - para_server: The server.users file is only read once on server
31           startup rather than for each connection
32         - mp3dec: Fix decoding of corrupt mp3 files
33         - afs (audio file sender) is now called vss (virtual streaming
34           system). Consequently, the permission flags specified in
35           ~/.paraslash/server.users have also changed: AFS_READ and AFS_WRITE
36           become VSS_READ and VSS_WRITE respectively.
37         - para_audiod/para_filter: Fix a bug that caused the last chunk
38           of audio data not being written under certain circumstances
39         - audiod: compute the difference of server time and local time
40           correctly
41         - para_server/para_audiod: Fix some memory leaks
42         - documentation improvements
43         - configure.ac: fix checks for para_krell
44         - new man pages
45
46 -------------------------------------------
47 0.2.14 (2006-10-15) "transient singularity"
48 -------------------------------------------
49
50 The only major enhancement of this version is the osx writer which completes
51 the Mac OS Port and was originally planned already for 0.2.13 but had to wait
52 until now for reasons beyond the scope of this changelog entry.
53
54         - new output plugin for Mac Os: the osx writer
55         - rename configure command line options from --enable-xxx-headers to
56           --with-xxx-headers and  --enable-xxx-libs to --with-xxx-libs
57         - configure: new command line options: --with-mad-headers,
58           --with-mad-libs, --with-oggvorbis-headers, and --with-oggvorbis-libs
59         - some robustness fixes
60         - dymamic audio format recognition for audiod
61         - para_server: new command line option: --autoplay_delay
62         - para_audiod: new command line option: --clock_diff_count
63
64 ---------------------------------------
65 0.2.13 (2006-07-14) "sonic convolution"
66 ---------------------------------------
67
68 A bunch of new features and core changes.
69
70         - the new paraslash scheduler, short and sweet.
71         - Support for m4a/mp4 files via the new aac audio format
72           handler/filter (requires libfaad).
73         - each writer has its own command line parser, just like
74           para_recv and para_filter.
75         - para_client and para_audioc use the error subsystem
76         - writers are integrated in para_audiod (currently linux-only)
77         - para_client is integrated in para_audiod
78         - random/playlist selector: improved info strings
79         - new audiod commands: tasks, kill
80         - update to libortp-0.10.1
81         - para_fade: wake time defaults to 8 hours from now
82         - update to autoconf-2.60
83
84
85 ------------------------------------------
86 0.2.12 (2006-05-12) "oriented abstraction"
87 ------------------------------------------
88
89 Many user-visible changes in this release and lots of new
90 features:
91
92
93         - the new optional dccp sender/receiver. It uses the datagram
94           congestion control protocol. You'll need a fairly new kernel
95           for this.
96         - paraslash works on Mac OS X (thanks to Gerd Becker)
97         - para_play renamed to para_write
98         - modular output plugin design (writers) for para_write
99         - new file_writer output plugin for para_write
100         - compress filter speed improvements
101         - update to libortp-0.9.1
102         - update to gengetopt-2.17rc
103         - para_client no longer depends on libreadline (as the
104           code for the interactive mode was removed).
105         - gcc-2-95 is no longer a supported compiler. It may still
106           work, but it gets no more testing.
107         - the tarball no longer contains the screenshot images which
108           reduces its size quite a bit.
109         - configure: new command line options: --enable-mysql-headers
110           and --enable-mysql-libs
111
112 ------------------------------------
113 0.2.11 (2006-03-11) "atomic duality"
114 ------------------------------------
115
116 Here it is, the first paraslash release developed with git. There
117 are fairly many user-visible changes in this release. As two out of
118 the three "database tools" of paraslash don't use a database at all,
119 they are now called "audio file selectors" instead.
120
121
122         - the cdt command (change database tool) becomes chs (change
123           selector)
124         - no more colon separators: The syntax of some options of
125           para_audiod and para_filter have changed. Use --help for
126           more info (and some examples).
127         - update to gengetopt-2.16 (thanks to Lorenzo Bettini)
128         - switch from cvs to git (should've done that earlier)
129         - the new ipc subsystem
130         - new audio file selector: playlist
131         - para_server: the dopey selector is now called "random",
132           and is the default selector. Use the --selector option to
133           choose another selector at startup, or the chs command to
134           change the selector at runtime.
135         - X86_64 fixes (thanks to Steffen Klassert)
136         - para_play fixes
137
138
139 --------------------------------------
140 0.2.10 (2006-02-17) "cyclic attractor"
141 --------------------------------------
142
143 Huge documentation update, a scrollable window for para_gui, ortp
144 improvements, and of course many small fixes not mentioned here.
145 The diffstat below is rather misleading as most insertions are due
146 to the new source documentation.
147
148         - autoconf cleanup
149         - para_server also uses the new error subsystem
150         - lots of new documentation (UTSL)
151         - gui improvements:
152                 - keysyms for cursor keys and for next/previous page keys
153                 - scrollable output window
154                 - new internal commands: scroll up/down, page up/down
155                 - fix color of command output.
156         - ortp: the --chunk_time and --header flags are no longer needed
157         for para_recv/para_audiod as this information is now encoded in
158         each rtp packet sent by para_server.
159
160
161 -------------------------------------------
162 0.2.9 (2006-01-24) "progressive turbulence"
163 -------------------------------------------
164
165 Internal audiod receivers/filters, the new error subsystem and
166 a lot of small improvements.
167
168         - para_recv and para_filter are integrated into the para_audiod
169           binary, i.e. audiod no longer spawns a new process for
170           each receiver/filter. As para_recv and para_filter might be
171           useful as standalone programs, they still get built (linked
172           against the same object files that are also used for audiod).
173         - further ortp timing improvements should reduce the CPU usage
174           of the ortp receiver.
175         - improved audio grabbing. The 'grab' command of para_audiod
176           has its own set of command line options. Read the output of
177           "para_audioc help grab" for more info.
178         - oggdec: configurable input prebuffer size.
179         - the new error subsystem gives better error diagnostics
180           and reduces code size.
181
182
183 -----------------------------------------
184 0.2.8 (2006-01-02) "dynamic accumulation"
185 -----------------------------------------
186
187 The new modular filter design and the para_play-hangs bugfix.
188
189         - new executable: para_filter. It combines para_mp3dec,
190           para_oggdec and para_compress. It also adds a further filter
191           type, wav, that just inserts a wave header at the desired point
192           of the filter chain. All 'piping' is done in-memory (i.e. no
193           read/write operations are used).
194         - para_play: fix a stupid bug that caused it to hang under
195           certain circumstances.
196
197
198 -------------------------------------------
199 0.2.7 (2006-12-27) "transparent invariance"
200 -------------------------------------------
201
202 Not many user-visible changes but a fair amount of internal improvements.
203
204
205         - The http sender buffers data if it can not be sent
206           out immediately (because the socket is not writable). This
207           should prevent para_server from shutting down the connection
208           too early on a loaded network.
209         - para_play also prebuffers data if it is told to start at a
210           future time by the --start_time option.
211         - The return of para_recv: It combines para_ortp_recv and
212           para_http_recv. Use the --receiver option to switch between
213           the two. para_recv builds without libortp, but contains
214           only the http receiver in this case.
215         - update to ortp 0.8.1. As this ortp release contains incompatible
216           changes, para_recv-0.2.7 won't link against older ortp libs.
217         - improved ortp timings.
218         - use of gcc-extensions that #define away for non-gcc and
219           gcc < 3.0.
220
221
222 -------------------------------------------
223 0.2.6 (2005-10-29) "recursive compensation"
224 -------------------------------------------
225
226 Transparent session encryption (uses openssl's Alleged RC4 cipher),
227 the internal find command and several other improvements and cleanups.
228
229         - Encrypt the session if encryption is requested by the client
230           (default for para_client 0.2.6). This is backwards
231           compatible, so older clients can still connect to para_server
232           0.2.6. Use the new client option --plain to request an
233           uncrypted session (off by default, must be set to on in
234           order to connect to para_server 0.2.x with 0 <= x <= 5).
235         - para_server uses an internal function to locate audio files
236           rather than calling find(1). The server option
237           --mysql_audio_file_dir replaces --mysql_find_cmd.
238         - documentation update
239         - man pages
240         - header file cleanup
241         - para_client code cleanup
242         - para_gui: faster display of output of display commands
243
244
245 ------------------------------------------
246 0.2.5 (2005-10-13) "aggressive_resolution"
247 ------------------------------------------
248
249 This release adds internal senders, i.e. no more external programs are
250 spawned for sending out the audio data. There are two different senders
251 available: The http sender and the ortp sender (former para_send which
252 is no longer needed).
253
254 The new sender code has a plugin-like design so it can be easily
255 extended should there be be any future need for supporting another
256 network streaming protocol. All senders are completely independent of
257 each other. In particular, the http and the ortp sender can operate
258 in parallel.
259
260         - new server command: sender to control senders at runtime.
261           Read the output of "para_server -h" and "para_client help
262           sender" for more information.
263         - para_recv renamed to para_ortp_recv
264         - new executable: para_http_recv, a simple command line
265           http receiver.
266         - major afs/mp3/ogg code simplifications due to internal
267           senders.
268         - ogg timing improvements
269         - fix several minor memory leaks (found by valgrind)
270         - empty stream definitions work again
271         - com_ne(): ignore errors on remove
272         - audiod: fix segfault on server restart
273
274
275 ---------------------------------------
276 0.2.4 (2005-09-21) "toxic anticipation"
277 ---------------------------------------
278
279 Several small improvements, fixes and the new grab command.
280
281         - audiod:
282                 - new command: "grab" to grab the output of the stream reader
283                   or any filters. Read the output of "para_audioc help grab"
284                   for more information.
285                 - fix memory leak
286                 - code cleanup
287         - audioc: new command line option: --bufsize to specify a
288           buffer size different from the default size 8192.
289         - improved error diagnostics for para_play.
290         - new configure option: --enable-ssldir so search for openssl in
291           non-standard places
292         - sdl_gui: Make it look nice again for 1024x768
293         - server: report total size of memory allocated with sbrk by malloc,
294           new command line option: --announce_time
295
296
297 -----------------------------------------
298 0.2.3 (2005-09-01) "hydrophilic movement"
299 -----------------------------------------
300
301 Two new executables and major feature enhancements.
302
303         - audiod filters: It is now possible to specify arbitrary many
304           (including none) filters for each supported audio
305           format. This can be used e.g. for normalizing volume,
306           transforming or grabbing the audio stream, or for using
307           visualizers.  Read the output of "para_audiod -h" for the
308           syntax of the new --filter_cmd option.
309         - new executable: para_play, a tiny alsa player. It
310           can play wave files or raw pcm (16 bit little endian)
311           from stdin.
312         - new executable: para_compress, a dynamic range compressor
313           intended to keep audio output at a consistent volume. Derived
314           from AudioCompress, http://trikuare.cx/code/AudioCompress.html.
315         - audiod: New option: --stream_delay. This can be used in
316           a local network to syncronize the audio output of all
317           clients that play the same stream.
318
319
320 ------------------------------------------
321 0.2.2 (2005-08-19) "tangential excitation"
322 ------------------------------------------
323
324 Mostly internal changes in this release, but also some new commands
325 for the mysql database tool.
326
327         - cleanup exec.c, fix para_exec bug
328         - compile time loglevel (log messages below the given level
329           won't be compiled in, which reduces the size of the
330           resulting binaries)
331         - new log macros that shorten the size of the source code.
332         - workaround a gcc-4.1 bug (?) that caused send_cred_buffer()
333           to send only zeros. With this workaround, para_audioc works
334           again.
335         - avoid gcc-4 warning: conflicting types for built-in function 'clog'
336         - new mysql commands: "rm" (remove entry), "mv" (rename entry) "ne"
337           (new entry), "snp" (set numplayed). Read the manual for more
338           information.
339
340
341 ---------------------------------------
342 0.2.1 (2005-08-15) "surreal experience"
343 ---------------------------------------
344
345 Here comes paraslash-0.2.1. It contains a couple of new features and,
346 surprise, only minor bug fixes.
347
348         - kill noisy mp3 debug message
349         - cleanup of the build system
350         - para_server and para_client directly use the crypto routines
351           of the openssl library rather than invoking the openssl command
352           line utitlity
353         - server/audiod: new option --user to switch to the given user
354           when invoked as root. Read the output of "para_server -h" for
355           more information.
356         - gui/sdl_gui: new option --stat_cmd to be used to retrieve the
357           status. Default: "para_audioc stat"
358         - sdl_gui: new option --pic_cmd to be used to download the picture.
359           Default: "para_client pic"
360         - audiod: 5 slots ought to be enough for everybody
361         - audiod: new status item: Uptime, kill hup command
362
363
364
365 ------------------------------------------
366 0.2.0 (2005-08-06) "distributed diffusion"
367 ------------------------------------------
368
369 After several month of increased development activity, paraslash-0.2.0
370 has arrived. It contains many new features and is much more
371 self-contained than the old 0.1.x series. Enjoy!
372
373
374         - para_server: fix hang on song change and crash on sighup.
375           Speed up mysql queries. The DIR_LIKE macro is gone.
376         - new executables: para_audiod, the local audio daemon that
377           starts playback (uses SCM_CREDENTIALS socket magic) and
378           para_audioc, the corresponding client.
379         - new executables: para_mp3dec/para_oggdec, two really teensy
380           decoders. para_mp3dec is based on libmad, para_oggdec requires
381           libvorbisfile.
382         - ovsend/ovrecv are capable of streaming ogg as well as mp3, so
383           they are now called para_send and para_recv respectively.
384         - documentation updates
385         - para_gui is themable. For now there is the default theme that
386           looks as before and the simple theme: blue and easy.
387         - gui: audio streaming is now handled by audiod. Time display shows
388           playback time rather than streaming time
389         - slider: update to libzmw-0.2.0
390         - para_krell: fix crash on server shutdown
391         - switch from gzip to bzip2
392
393
394 ----------------------------------------
395 0.1.7 (2005-04-18) "melting penetration"
396 ----------------------------------------
397
398 The main change in this release is clearly the oggvorbis rewrite,
399 but there are also lots of smaller changes. If you intend to use both
400 the mp3 and the ogg plugin, it is recommended to use software mixing,
401 e.g. the dmix plugin which is provided by ALSA.
402
403         - new executables: para_ovsend and para_ovrecv for sending/receiving
404           oggvorbis files via rtp. Requires the open rtp library. Get it at
405           http://www.linphone.org/ortp/
406         - rewrite of the ogg_vorbis core code
407         - configure detects libzmw and, if detected, includes
408           para_slider to the list of binaries to be built by make
409         - server stream writers read from their associated fifo rather
410           than from stdin
411         - slider: two new sliders, lastplayed and numplayed
412         - fix nasty double free bug which caused random segfaults in case of
413           mp3 files with invalid header information
414         - gui: new command line option: --stream_timeout=seconds  to
415           deactivate a slot if it is idle for that many seconds (default=`5')
416         - diffstats
417
418
419 ---------------------------------------
420 0.1.6 (2005-03-05) "asymptotic balance"
421 ---------------------------------------
422
423 Only little user-visible changes in this release. Mainly bugfixes and
424 core code cleanup. This is probably the most stable version ever if you
425 stick to mp3...
426
427         - fix several memory leaks
428         - rename default name of mysql database from "music" to "paraslash".
429           Use para_server's  --mysql_database option if you do not want to
430           rename your old database.
431         - rework ogg vorbis code
432         - make update command work on mysql servers with LOCAL_INFILE
433           disabled
434         - gui: improved stream I/O (slots)
435         - simplified audio format API
436         - para_pob_ogg is gone
437
438 ------------------------------------
439 0.1.5 (2004-12-31) "opaque eternity"
440 ------------------------------------
441
442 Let's slide gently into the new year.
443
444         - new: para_slider (not built automatically, type "make
445           para_slider" to build). A toy for those who always felt that
446           creating stream definitions is difficult. See screenshots,
447           README and FEATURES for more info.
448         - improved signal handling. Fixes server segfault on SIGHUP
449           for linux kernels newer than Aug 24 2004 and makes para_gui
450           race-free.
451         - reload database tool on SIGHUP
452         - improved help message for sl
453         - do not log "broken pipe" messages as errors. They are
454           perfectly ok.
455         - fix wrong error message on permission errors
456
457 -----------------------------------------
458 0.1.4 (2004-12-19) "tunneling transition"
459 -----------------------------------------
460
461 Bugfix release. As expected, 0.1.3 introduced a bunch of new bugs.
462 Hopefully, most of them got wiped out with this release. Some
463 enhancements went also in.
464
465         - improved error diagnostics for all commands
466         - stradd/picadd: overwrite previous contents if entry already
467           exists, rather than returning errors
468         - stradd: use current stream if invoked without args
469         - faster (and hopefully more stable) ogg-vorbis handling
470         - para_krell: reap children to avoid zombie-flooding in case
471           no server is running
472         - si: report also server pid
473         - server: don't busy-loop if dbtool reports only invalid files.
474         - gui: CTRL+C works again, fix stream_read command line option
475         - fix pic_add, hist
476         - fix mysql dbtool startup in case no database exists
477         - many small fixes and cleanups
478
479 ---------------------------------------
480 0.1.3: (2004-12-10) "vanishing inertia"
481 ---------------------------------------
482
483 Starting from this release, the database tools are integrated in the
484 server binary. This decreases server startup time, reduces code size
485 and speeds up database commands. However, the layout of the underlying
486 mysql database changed only slightly and 0.1.3 should be backwards
487 compatible in that respect.
488
489 Visible changes:
490
491         - If mysql is not detected at compile time, or fails to init
492           at runtime, fall back to the dopey database tool which should
493           always work.
494         - para_dbtool and dbtool.conf are gone. All mysql specific
495           options are read from server.conf and are prefixed by 'mysql_'.
496         - new command: cdt (change database tool)
497         - new command line option: dbtool (choose startup database tool)
498         - The name of current stream is now stored in the database,
499           so paraslash remembers its current stream when restarted.
500         - new command: csp (change stream and play)
501         - para_gui also reports current database tool and server uptime
502
503
504 -------------------------------------------
505 0.1.2: (2004-11-28) "spherical fluctuation"
506 -------------------------------------------
507
508 Point release before the big dbtool changes go in.
509
510         - dbtool: rename ca to cam (copy all meta data). It now also
511           copies numplayed and lastplayed time as well as the picture
512           id.
513         - fix endless-loop-bug caused by mp3 files with invalid header
514
515 -----------------------------------------
516 0.1.1: (2004-11-05) "floating atmosphere"
517 -----------------------------------------
518
519         - gkrellm plugin
520         - new dbtool command: mbox. Browse your sound-file collection
521           with your favorite mail reader.
522         - several small fixes
523
524 -------------------------------------
525 0.1.0: (2204-10-22) "rotating cortex"
526 -------------------------------------
527
528         - fix logging bug for loglevel > VERBOSE
529         - fix skip command
530         - correct timings for vbr mp3s
531         - modular audio format support
532         - ogg-vorbis support (experimental)
533         - new server option: autoplay
534
535 -----------------------------------------
536 0.0.99: (2004-07-25) "harmonic deviation"
537 -----------------------------------------
538
539         - rename projectname from icc to paraslash (play, archive, rate
540           and stream large audio sets happily)
541         - paraslash is no longer restricted to one particular audio
542           streaming software
543         - new dbtool commands (stradd, strq, strdel) for easy stream
544           managment w/o configuration file. That obsoletes stream_defs
545           file/config option for dbtool.
546         - picadd accepts jpeg data from stdin
547         - new server commands: ps (select previous stream), sc (song change)
548         - new default pictures for sdl_gui
549         - gui: new key_map option for binding commands and internal
550           functions to arbitrary keys, nice help screen, rip out
551           soundcard/linux specific stuff, avoid noise artefacts while jumping,
552           show silly logo on startup
553         - new executables: para_fade for fading volume, para_dbadm for
554           manipulating attributes
555         - cdb adds _all_ tables to mysql database
556         - revised and beautified documentation
557         - sample dbtool rewritten in C
558         - autoconf
559
560 ---------------------------------------------
561 0.0.98: (2003-12-26) "incremental smoothness"
562 ---------------------------------------------
563
564         - kick icecast in favour of poc. That removes some races and reduces
565           core code considerably.
566         - cbr/vbr is displayed by stat and gui/sdl_gui. New status flags
567           give finer info on afs' status.
568         - gui can start decoder (see config options). Further new gui
569           commands: refresh (^L), jmp (F1-F10)
570         - gui rereads conf on SIGUSR1 instead of SIGHUP. SIGHUP
571           terminates gui. This fixes dead instances consuming memory
572           continuously.
573         - new dbtool command: verb for sending verbatim sql queries.
574         - fix pid_list races (by removing pid_list)
575         - codename funnies
576
577 --------------------
578 0.0.97: (2003-10-26)
579 --------------------
580
581         - installation prefix now defaults to /usr/local
582         - new commands for gui: snozze, sleep and reread config
583         - config file for gui and sdl_gui
584         - fix problems with filenames containing funny characters
585           (reported by Thomas Forell)
586         - improved signal handling for gui, now it rereads conf on SIGHUP
587         - new dbtool command: cdb (create database)
588         - switch from argtable to gengetopt
589         - major code cleanup and speed improvements
590         - fix several potential buffer overflows
591         - many small fixes and cleanups
592
593 -------------------
594 0.0.96 (2003-08-30)
595 -------------------
596
597         - easy stream_defs syntax
598         - sdl_gui can display images associated to the file being played
599         - Major feature enhancements for icc_gui including dynamic text
600           placement and the top/bottom window design
601         - vrfy/clean now also checks for NULL values in attributes as
602           well as for invalid picture pointers
603         - fix long outstanding case sensitivity bug
604         - many small fixes and cleanups
605
606 -------------------
607 0.0.95 (2003-06-29)
608 -------------------
609
610         - sdl gui runs much faster
611         - new dbtool command: ca (copy attributes)
612         - count and display number of times the song has been played
613         - new feature: scoring
614         - command line options for sdl_gui
615         - simpler syntax of streams file
616         - decrease network traffic of stat
617         - fix zombie bug
618         - many small fixes and cleanups
619
620 -------------------
621 0.0.94 (2003-05-04)
622 -------------------
623
624         - new server command: ns (next stream)
625         - new icc_gui command: c (change stream)
626         - internal mp3info
627         - stat shows also id3 tag info
628         - new sdl based gui
629         - log flodding bug fixed
630         - many small fixes and cleanups
631
632 -------------------
633 0.0.93 (2003-03-28)
634 -------------------
635
636         - colors for icc_gui
637         - icc_gui sets volume directly (linux only)
638         - proper locking that fixes some races
639         - fix security bug that caused commands to be executed even
640           with unsufficient permissions
641         - new command: hup to make all servers reread their configuration file
642         - icecast meta data streaming
643         - many small fixes and cleanups