Commit graph

796 commits

Author SHA1 Message Date
Daniel Stenberg
af341158db bad bad bad snprintf() overflow the buffer if the string passed in with a
%s didn't fit within the buffer!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1943 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 08:29:44 +00:00
Daniel Stenberg
57392acd18 the simulator code now deals better with playlist_next() returning NULL
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1941 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 07:56:36 +00:00
Hardeep Sidhu
e255798f44 Fixed a flaw in the ffw/rew logic for large vbr files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1939 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 06:36:32 +00:00
Justin Heiner
2630245cb9 Added NSauzede's patch to detect USB while in a Menu. It also adds the USB icon to the player while in USB mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1935 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:17:00 +00:00
Hardeep Sidhu
754651efdd Reset mp3buf_swapwrite when selecting next track that is already in buffer. This should fix the track silence bug. Also, when seeking to end of file, leave some bytes at the end so that the transition to the next track is done correctly. This should fix the few seconds repeat at beginning of next song.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1934 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 23:01:25 +00:00
Björn Stenberg
518e1ec1e4 New measurements show ATA_SLEEP saves us 30-40 mA over ATA_STANDBY.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1932 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 21:53:10 +00:00
Daniel Stenberg
e666ce933a when we want to open a file, we want the exact specified file name, not
just one that starts with our given string...


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1929 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 20:13:21 +00:00
Felix Arends
c94aa32731 bitswap.s is linked with librockbox as well now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1925 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 15:01:24 +00:00
Daniel Stenberg
ae3952ec90 make mp3info() better return true on bad mp3 files, also make
getsonglength() return 0 if the length is unknown


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1923 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:59:31 +00:00
Daniel Stenberg
22633d66a2 Check the return code from each call to mp3info(), as it might return true
to indicate a bad mp3 file.

TODO: when having a dir full of zero-byte mp3 files and pressing play on
one using the simulator, this'll go crazy.

TO CHECK: I haven't checked how the live target code behaves on this.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1922 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:58:18 +00:00
Daniel Stenberg
5cb571297e CONFIG, API, CONTRIBUTING and CREDITS are now in ../docs/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1915 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:15:01 +00:00
Heikki Hannikainen
834a3c2509 Charge longer, deeper, better. Also restart charging already at 95%, since
90% is already pretty empty.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1900 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 20:09:13 +00:00
Heikki Hannikainen
fdb44c9175 Reset the power history with the latest value when starting charging
so that we don't use values before discharge for the long-term delta
calculation.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1899 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 20:06:41 +00:00
Daniel Stenberg
c6c080defe include kernel.h to work stand-alone better
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1897 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 17:45:22 +00:00
Björn Stenberg
0c2e9f21e3 Stays in pause mode after seek
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1896 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 17:38:56 +00:00
Daniel Stenberg
6b8cf08b6d Magnus Öman's rocking USB logo is now being put to use.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1891 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 17:22:11 +00:00
Robert Hak
9047060d99 lets point to ../docs/README
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1871 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 11:13:46 +00:00
Robert Hak
e532316e92 moved these files to /docs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1867 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 11:02:36 +00:00
Mats Lidell
6866cef936 Added icons for charcell simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1857 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 10:43:31 +00:00
Markus Braun
bcbb8046f8 Fixed lcd_getstringsize() for prop fonts. Now also counts the blank columns
after each character.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1834 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 06:22:02 +00:00
Björn Stenberg
82e8b0becb Removed warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1830 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 21:28:31 +00:00
Björn Stenberg
3a9e7b5f13 Now updates time display after resume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1829 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 20:38:50 +00:00
Markus Braun
eef970428b added functions to get the current margins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1821 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 19:33:55 +00:00
Linus Nielsen Feltzing
bfc8d0ac44 Faster, 8-bit bitswap by Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1819 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 14:22:11 +00:00
Daniel Stenberg
ef3a3e7093 use the gcc option -ffreestanding: (quote from the gcc man page)
"A freestanding environment is one in which the standard library may not
exist, and program startup may not necessarily be at "main".  The most obvious
example is an OS kernel."


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1818 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 14:00:42 +00:00
Daniel Stenberg
3d6df952ec Added support for the unofficial MPEG version 2.5 format that uses a somewhat
different frequency table but the same bitrate table that V2 has.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1805 a1c6a512-1295-4272-9138-f99709370657
2002-08-19 14:15:33 +00:00
Björn Stenberg
9315282b1e Fall back to fixed font if loadable font is not present
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1801 a1c6a512-1295-4272-9138-f99709370657
2002-08-19 12:03:02 +00:00
Björn Stenberg
34486b7860 Merged Hardeep's resume fix. Also mpeg_is_playing() now returns true even when paused (broke some other code).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1798 a1c6a512-1295-4272-9138-f99709370657
2002-08-19 11:00:29 +00:00
Björn Stenberg
6224cdb166 Added resume. Works in dirs and playlists, shuffled or not. Resumes mid-song, but press pause on players before you shutdown so they get a chance to store the position on disk. Recorders use RTC ram. Todo: Time display is wrong after mid-track resume and ffd/rew is not handled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1787 a1c6a512-1295-4272-9138-f99709370657
2002-08-16 14:41:47 +00:00
Felix Arends
8db1feb377 win32 makefile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1785 a1c6a512-1295-4272-9138-f99709370657
2002-08-16 14:10:18 +00:00
Daniel Stenberg
2f4435cc7c less stack means more mem for fun and games ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1780 a1c6a512-1295-4272-9138-f99709370657
2002-08-16 11:53:54 +00:00
Linus Nielsen Feltzing
bd7fc37984 No DAC3550A in the recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1774 a1c6a512-1295-4272-9138-f99709370657
2002-08-16 07:16:52 +00:00
Björn Stenberg
0edcd0a7bf VBR ID3 info works again. (I mistakenly left out a line from Hardeep's patch.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1771 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 19:11:26 +00:00
Björn Stenberg
749d87bb20 Correction for fast-forward/rewind
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1769 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 16:48:34 +00:00
Linus Nielsen Feltzing
3ed34a6227 New backlight settings with always-off
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1766 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 13:56:06 +00:00
Björn Stenberg
6ee90d9366 Removed warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1763 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 12:54:52 +00:00
Björn Stenberg
c9d98ca927 Added delayed write for settings. Doesn't write until someone else accesses the disk.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1762 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 12:42:37 +00:00
Björn Stenberg
134c45d709 Fixed font target for loadable fonts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1759 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 11:35:14 +00:00
Heikki Hannikainen
dd2bae49eb avoid flickering of battery level during the first minute of uptime by taking a voltage sample at power_init
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1758 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 11:32:01 +00:00
Linus Nielsen Feltzing
fae5b82d60 Now doesn't truncate the lenght when comparing path components
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1757 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 11:26:12 +00:00
Daniel Stenberg
15c401ec48 tags target added for emacs-etags power
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1751 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 09:30:41 +00:00
Markus Braun
e2a9fe1943 time/date setting works now with loadable and proportional fonts
code makeup


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1749 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 06:36:25 +00:00
Linus Nielsen Feltzing
3377e9f302 Killed a simulator warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1748 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 05:44:26 +00:00
Linus Nielsen Feltzing
b3bda03db0 Added Balance setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1744 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 21:30:06 +00:00
Björn Stenberg
bfe55a4a09 Removed section .pad, since it's no longer required
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1743 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 19:50:16 +00:00
Björn Stenberg
095d47ea20 Removed note
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1742 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 19:45:32 +00:00
Björn Stenberg
0570497e3a Added fast forward and rewind (without sound). Patch by Hardeep Sidhu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1741 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 19:23:34 +00:00
Björn Stenberg
30033df6fa fat_read() now reads multiple sectors per ATA command
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1737 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 16:39:39 +00:00
Björn Stenberg
63457c5c63 Added support for reading/writing 256 sectors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1736 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 16:37:28 +00:00
Björn Stenberg
9ab90eabd1 Removed verbose debug message
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1735 a1c6a512-1295-4272-9138-f99709370657
2002-08-14 14:36:26 +00:00