summaryrefslogtreecommitdiff
path: root/apps/buffering.c (follow)
Commit message (Collapse)AuthorAge
...
* Further improve the mistakes I made in add_handle (thanks Nico_P for not ↵Brandon Low2007-10-30
| | | | | | beating me with them) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15376 a1c6a512-1295-4272-9138-f99709370657
* can_add_handle() can be removed, but its logic must remain: before adding a ↵Nicolas Pennequin2007-10-30
| | | | | | handle, we need to make sure the there'll be space left for the curent one to finish buffering. This should fix the audio dropout problems people were experiencing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15374 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow, not sure how to properly specify this argument's nature so this ↵Brandon Low2007-10-29
| | | | | | is fine git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15363 a1c6a512-1295-4272-9138-f99709370657
* Remove can_add_handle, its safety and benefit are both questionable. Make ↵Brandon Low2007-10-29
| | | | | | shrink_buffer a function to reduce code duplication. Change move_handle semantics so that the caller never loses track of the current position of h, even if the move fails. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15362 a1c6a512-1295-4272-9138-f99709370657
* Prefix the error constants with ERR_Nicolas Pennequin2007-10-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15359 a1c6a512-1295-4272-9138-f99709370657
* Improve move_handle's semantics. Shoudl have no functional impactBrandon Low2007-10-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15351 a1c6a512-1295-4272-9138-f99709370657
* Comment improvementsBrandon Low2007-10-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15350 a1c6a512-1295-4272-9138-f99709370657
* Add #defines for error values. Makes the code easier to read.Nicolas Pennequin2007-10-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15348 a1c6a512-1295-4272-9138-f99709370657
* Hopefully fix codec load and data abort problems by making add_handle and ↵Brandon Low2007-10-27
| | | | | | move_handle much better at wrapping the buffer smartly and not putting the wrong things on the wrap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15330 a1c6a512-1295-4272-9138-f99709370657
* Whoops, that thread can't run until the linked list is initializedBrandon Low2007-10-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15329 a1c6a512-1295-4272-9138-f99709370657
* Create queue stuff before the thread that will use itBrandon Low2007-10-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15328 a1c6a512-1295-4272-9138-f99709370657
* Make buffering initialization versus reset separate functions to avoid ↵Brandon Low2007-10-27
| | | | | | double initializing threads or mutexes more easily git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15327 a1c6a512-1295-4272-9138-f99709370657
* Add some const keywords, improve some comments, add a safety check or two, ↵Brandon Low2007-10-27
| | | | | | should have no functional difference git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15326 a1c6a512-1295-4272-9138-f99709370657
* * Only call bufgetcodec onceNicolas Pennequin2007-10-27
| | | | | | | | * Fix/Improve some queue logf messages * Complete buffering_init git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15325 a1c6a512-1295-4272-9138-f99709370657
* Finally commit Metadata on Buffer!Nicolas Pennequin2007-10-25
buffering.c and buffering.h implement the new buffering API. playback.c is translated to that API. For more information about the whole concept, see http://www.rockbox.org/wiki/MetadataOnBuffer. There should be no major visible changes, but most existing bugs remain (though fixing them should be easier now that playback.c is a bit less complex) and there probably will be new ones. Please report any problem! Next step is to adapt cuesheet support, which is partly disabled here, and of course fix as much bugs as possible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15306 a1c6a512-1295-4272-9138-f99709370657