Buffering callbacks rework. There is now one callback for all the events that can...
commita3aad7044e1318e1f688b31c843254b02a6c3490
authornicolasp <nicolasp@a1c6a512-1295-4272-9138-f99709370657>
Mon, 26 Nov 2007 21:13:08 +0000 (26 21:13 +0000)
committernicolasp <nicolasp@a1c6a512-1295-4272-9138-f99709370657>
Mon, 26 Nov 2007 21:13:08 +0000 (26 21:13 +0000)
tree98c59ab834d96399272315b815c9e4bd09e5849c
parent1e670f180fecd0372421f326c7ebfc28c3018889
Buffering callbacks rework. There is now one callback for all the events that can occur. Callbacks are now registred only once instead of being removed after having been called.
Fix FS#8092 by flushing the audio when a rebuffer is needed.
Also add some comments here and there.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15816 a1c6a512-1295-4272-9138-f99709370657
apps/buffering.c
apps/buffering.h
apps/playback.c