summaryrefslogtreecommitdiff
path: root/apps/tree.h (follow)
Commit message (Collapse)AuthorAge
* Implement time-based resume and playback start.Michael Sevakis2014-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This complements offset-based resume and playback start funcionality. The implementation is global on both HWCODEC and SWCODEC. Basically, if either the specified elapsed or offset are non-zero, it indicates a mid-track resume. To resume by time only, set elapsed to nonzero and offset to zero. To resume by offset only, set offset to nonzero and elapsed to zero. Which one the codec uses and which has priority is up to the codec; however, using an elapsed time covers more cases: * Codecs not able to use an offset such as VGM or other atomic formats * Starting playback at a nonzero elapsed time from a source that contains no offset, such as a cuesheet The change re-versions pretty much everything from tagcache to nvram. Change-Id: Ic7aebb24e99a03ae99585c5e236eba960d163f38 Reviewed-on: http://gerrit.rockbox.org/516 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested: Michael Sevakis <jethead71@rockbox.org>
* Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR.Boris Gjenero2011-12-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31370 a1c6a512-1295-4272-9138-f99709370657
* FS#12378 : Remove various unused code, and comment out some unused code and ↵Boris Gjenero2011-12-14
| | | | | | data for reference or future use. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31256 a1c6a512-1295-4272-9138-f99709370657
* FS#12251 - User shortcuts in the main menu.Jonathan Gordon2011-11-15
| | | | | | | Custom shortcuts which give the user fast access to regularly used files/folders/settings/whatever. Thanks to Alexander Levin for the manual part of the patch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30990 a1c6a512-1295-4272-9138-f99709370657
* GSoC/Buflib: Enable compaction in buflib.Thomas Martitz2011-08-30
| | | | | | | | | | | | | | | | | | | This enables the ability to allocate (and free) memory dynamically without fragmentation, through compaction. This means allocations can move and fragmentation be reduced. Most changes are preparing Rockbox for this, which many times means adding a move callback which can temporarily disable movement when the corresponding code is in a critical section. For now, the audio buffer allocation has a central role, because it's the one having allocated most. This buffer is able to shrink itself, for which it needs to stop playback for a very short moment. For this, audio_buffer_available() returns the size of the audio buffer which can possibly be used by other allocations because the audio buffer can shrink. lastfm scrobbling and timestretch can now be toggled at runtime without requiring a reboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30381 a1c6a512-1295-4272-9138-f99709370657
* Cleanup tree.c cache handling a bit.Thomas Martitz2011-08-03
| | | | | | | | * Rename stuff to not re-use the term dircache * Move cache to own struct * Encapsulate retrieving entries a bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30242 a1c6a512-1295-4272-9138-f99709370657
* Don't (partially) apply changes to max entries in the file browser ↵Magnus Holmgren2011-04-30
| | | | | | immediately. The setting affects a buffer that is allocated during boot, so code using that buffer should use the value that was in effect during boot. Add a note to the manual that a reboot is needed for the changes to be applied. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29798 a1c6a512-1295-4272-9138-f99709370657
* Rename the NO_CONTEXT flag to NO_CONTEXT_MENU so that the name more clearly ↵Alexander Levin2010-12-15
| | | | | | conveys what the flag does git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28837 a1c6a512-1295-4272-9138-f99709370657
* remaining of FS#11777. Use rockbox_browse() to display playlists in Playlist ↵Teruaki Kawashima2010-12-15
| | | | | | Catalog. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28836 a1c6a512-1295-4272-9138-f99709370657
* FS#11777: enhancement for rockbox_browse()Teruaki Kawashima2010-12-14
| | | | | | | | | | * Add struct browse_context to be passed to rockbox_browse. * Show proper title when selecting e.g. .wps file or .sbs file from the settings menu. * Add select only mode to rockbox_browse(). when a file is selected, it's path is stored to buffer and the browser exits without 'playing' the file. this will allow to use the browser in more places to select file including plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28831 a1c6a512-1295-4272-9138-f99709370657
* simplify rockbox_browse a bit and reuse buffer.Teruaki Kawashima2010-10-22
| | | | | | use const for argument of set_current_file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28328 a1c6a512-1295-4272-9138-f99709370657
* Use system headers a bit more: use host's fcntl.h for O_RDONLY etc.Thomas Martitz2010-08-27
| | | | | | | | Removes the need to fix up those in the simulator. Also work around some posix-mingw incompatibilities (e.g. getcwd()). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27904 a1c6a512-1295-4272-9138-f99709370657
* Make getcwd match the posix variant, make get_current_file() behave similar ↵Thomas Martitz2010-08-27
| | | | | | to it and add a few sanity checks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27903 a1c6a512-1295-4272-9138-f99709370657
* FS#10756 - Free unused init codeThomas Martitz2010-03-03
| | | | | | | Introduce a new .init section for initialisation code, so that it can be copied to an area which is later overwritten before calling. The stack/bss can then overwrite that code, effectively freeing the code size that the initialisation routines need. Gives a few kB ram usage back. Only implemented for PP and as3525 so far. More targets could be added, as well as more functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25013 a1c6a512-1295-4272-9138-f99709370657
* Redraw the list after exiting the context menu to get rid of various ↵Thomas Martitz2009-09-20
| | | | | | non-blocking splashes in it if custom ui vp is used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22744 a1c6a512-1295-4272-9138-f99709370657
* Remove some unused declarationsBertrik Sikken2009-05-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21010 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#8949 - Alphabetical directory listing reversed after "Error Accessing ↵Nils Wallménius2008-10-08
| | | | | | Directory", patch by pondlife, some long line police by me, also kill a few error splashes in functions that could be called by threads other than UI git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18742 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Better bookmark resume handling, in particular when resuming a directory. If ↵Magnus Holmgren2008-02-10
| | | | | | Load Last Bookmark is set to Yes and the last bookmarked file could not be found, play the selected file instead. When selecting a bookmark for a missing file in the bookmark list, show a message that resume isn't possible (and don't play any selected file if Load Last Bookmark is set to Ask). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16267 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7486 - shortcuts plugin.Jonathan Gordon2007-08-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14191 a1c6a512-1295-4272-9138-f99709370657
* Move the root_menu() call out of tree.c.Jonathan Gordon2007-06-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13609 a1c6a512-1295-4272-9138-f99709370657
* Remove unused struct membersNils Wallménius2007-05-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13491 a1c6a512-1295-4272-9138-f99709370657
* Move the inbuilt filetype info into filetypes.c and rename the defines. Jonathan Gordon2007-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13201 a1c6a512-1295-4272-9138-f99709370657
* FS#6997 DB/tree Cleanup - remove unused field "currextra2".Miika Pekkarinen2007-04-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13078 a1c6a512-1295-4272-9138-f99709370657
* #ifdef code that only makes sense for multivolume targets, make private ↵Nils Wallménius2007-03-17
| | | | | | functions 'static' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12813 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#6716 - make it easier to follow the selected file going in and Jonathan Gordon2007-03-06
| | | | | | | out of the trees git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12638 a1c6a512-1295-4272-9138-f99709370657
* Introducing the root menu!Jonathan Gordon2007-03-01
| | | | | | | | | Blind users: get a new voice file as there are lots of lang changes and new strings. FS#6630 or RootMenu on the wiki for more info. complaints to /dev/null :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12528 a1c6a512-1295-4272-9138-f99709370657
* Cuesheet support by Jonathan Gordon and me (FS #6460).Nicolas Pennequin2007-02-14
| | | | | | | | Everytime an audio file is loaded, a cue file with the same name is searched for. A setting allows to disable this (default is off). Cuesheet files can also be viewed in the file browser. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12304 a1c6a512-1295-4272-9138-f99709370657
* More HAVE_TAGCACHE by Austin Appel Jonathan Gordon2007-02-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12213 a1c6a512-1295-4272-9138-f99709370657
* Finally, the new button action system is here, thanks to Jonathan Gordon. ↵Linus Nielsen Feltzing2006-08-15
| | | | | | Some button mappings have changed and other things may break. Comments should go to the forum, http://forums.rockbox.org/index.php?topic=5829.0 or the mailing list. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10582 a1c6a512-1295-4272-9138-f99709370657
* Barry Wardell's keymappings for H10Daniel Stenberg2006-08-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10446 a1c6a512-1295-4272-9138-f99709370657
* Enabled the quickscreen for iAudio X5. Globally, REC enters the menu and ↵Zakk Roberts2006-04-10
| | | | | | holding REC enters the quickscreen. Also moved the quickscreen #define to model config files, which simplifies the checking for it and makes checking more consistent. Cleaned up keymappings in quickscreen.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9590 a1c6a512-1295-4272-9138-f99709370657
* iAudio X5: joystick click selects in the file browser, like on the iriver ↵Linus Nielsen Feltzing2006-04-04
| | | | | | targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9484 a1c6a512-1295-4272-9138-f99709370657
* Patch #2711 by Alexander Spyridakis with some changes by me: adds load/save ↵Hristo Kovachev2006-04-02
| | | | | | | | | of presets to different files; Also fix the preset menu context menu not working on the remote git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9425 a1c6a512-1295-4272-9138-f99709370657
* Updated quickscreens, now they look better than before while still retaining ↵Zakk Roberts2006-04-02
| | | | | | the ability to scroll - this is about as good as it gets until viewports are implemented. Also enabled the quickscreen for iPods. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9421 a1c6a512-1295-4272-9138-f99709370657
* Add support for loadable vkeyboard layoutsFrank Dischner2006-03-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9347 a1c6a512-1295-4272-9138-f99709370657
* Moved main menu button to REC for both file browser and WPSDaniel Stenberg2006-03-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9333 a1c6a512-1295-4272-9138-f99709370657
* swap PLAY and REC for x5, I liked that way!Daniel Stenberg2006-03-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9268 a1c6a512-1295-4272-9138-f99709370657
* Initial version of tagcache! There are still some bugs in the engineMiika Pekkarinen2006-03-26
| | | | | | | and much more problems with the UI. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9256 a1c6a512-1295-4272-9138-f99709370657
* first gigabeat commitMarcoen Hirschberg2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
* Button driver for iAudio X5Linus Nielsen Feltzing2006-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8828 a1c6a512-1295-4272-9138-f99709370657
* Remove some unused/deprecated definesHristo Kovachev2006-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8777 a1c6a512-1295-4272-9138-f99709370657
* Use the iPod 4G button mappings for the iPod 3G as well (at least for now)Dave Chapman2006-02-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8591 a1c6a512-1295-4272-9138-f99709370657
* Patch #1421422 - Backdrop image patch started by Linus, finished by me. ↵Dave Chapman2006-02-02
| | | | | | Adds ability to set backdrop images for file browser and menus (store full-screen bitmaps in /.rockbox/backdrops/) and also the ability to set a full-screen background image in a WPS using the %X|filename.bmp| WPS tag. Currently only implemented for targets with colour LCDs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8536 a1c6a512-1295-4272-9138-f99709370657
* iPod: Fix some button-mapping bugs and inconsistenciesDave Chapman2006-02-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8531 a1c6a512-1295-4272-9138-f99709370657
* iPod: Change button mapping in the file browser. Now MENU is mapped to ↵Dave Chapman2006-01-20
| | | | | | menu, and PLAY/PAUSE is mapped to the WPS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8399 a1c6a512-1295-4272-9138-f99709370657
* Matt v.d. Westhuizen's iAudio X5 keypad adjustmentsDaniel Stenberg2006-01-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8366 a1c6a512-1295-4272-9138-f99709370657
* Work-in-progress iriver iFP-7xx port by Tomasz MalesinskiDave Chapman2006-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
* Remove IPOD_NANO_PAD definition - the Nano's keypad has turned out to be ↵Dave Chapman2005-12-19
| | | | | | identical to the other 4G models git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8262 a1c6a512-1295-4272-9138-f99709370657
* Added multi-screen support for quickscreen (mostly rewritten from scratch) ↵Kevin Ferrare2005-11-22
| | | | | | and USB screen ; just looking at the hour makes me think it could be buggy git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8039 a1c6a512-1295-4272-9138-f99709370657