Commit graph

193 commits

Author SHA1 Message Date
Kjell Ericson
ddefd1ebfc Added a thread for the simulator that counts the time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3049 a1c6a512-1295-4272-9138-f99709370657
2003-01-10 09:19:10 +00:00
Björn Stenberg
989a3ec28c set_elapsed() bug fix by Simon Elén
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3041 a1c6a512-1295-4272-9138-f99709370657
2003-01-09 01:02:40 +00:00
Hardeep Sidhu
96a6874ac4 Signal track change if no tracks in playlist are valid so wps updates and exits properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3036 a1c6a512-1295-4272-9138-f99709370657
2003-01-04 07:16:36 +00:00
Hardeep Sidhu
8fd18e9b8d Prev was going back too many tracks if more than one track was loaded in memory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3035 a1c6a512-1295-4272-9138-f99709370657
2003-01-03 22:54:02 +00:00
Hardeep Sidhu
d3d1b98d58 Don't signal track change until all id3 entries have been updated. Also, correctly set new write index after removing all tracks. Both changes fix potential resume bugs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3024 a1c6a512-1295-4272-9138-f99709370657
2002-12-19 00:58:11 +00:00
Björn Stenberg
c3fd67c6c9 Killed a dozen global variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3015 a1c6a512-1295-4272-9138-f99709370657
2002-12-18 14:57:45 +00:00
Linus Nielsen Feltzing
00b2aada9f Fixed a few recording glitches, and *maybe* the 30-minute recording bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2971 a1c6a512-1295-4272-9138-f99709370657
2002-12-12 02:22:01 +00:00
Linus Nielsen Feltzing
a946156151 Even more complicated MAS driver to handle MP2 streams, due to undocumented MAS behaviour. Now delays dma_tick() 1ms after /EOD goes active. (Recorder)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2960 a1c6a512-1295-4272-9138-f99709370657
2002-12-06 21:41:46 +00:00
Linus Nielsen Feltzing
c9feaafcf6 Even safer watermark margins, in wait for an accurate disk spinup time measurement
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2956 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 23:02:36 +00:00
Linus Nielsen Feltzing
672479c373 Less aggressive dynamic watermark calculation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2955 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 21:56:53 +00:00
Linus Nielsen Feltzing
7fed4a0f35 Faster start of playback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2953 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 17:14:35 +00:00
Linus Nielsen Feltzing
ce882bba24 Better update of the watermark when changing tracks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2951 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 15:23:46 +00:00
Linus Nielsen Feltzing
d29248d992 More fine-tuned buffer handling, and better debug info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2948 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 14:11:48 +00:00
Linus Nielsen Feltzing
d199e691e2 Slightly improved swap handling in lowwater situations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2944 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:36:08 +00:00
Linus Nielsen Feltzing
4851a2a939 The lowest watermark debug info wasn't correctly updated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2941 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:23:12 +00:00
Linus Nielsen Feltzing
f1f7b6150a ...and the usual simulator corrections
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2940 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:16:23 +00:00
Linus Nielsen Feltzing
b8ff5f8971 Added MP3 buffer margin setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2939 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 13:09:51 +00:00
Linus Nielsen Feltzing
f4233e482d Watermark = average bitrate * 1.5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2938 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 12:38:59 +00:00
Linus Nielsen Feltzing
2df262c23d The low watermark level is now dynamically calculated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2937 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 12:18:22 +00:00
Linus Nielsen Feltzing
8344437de0 Better handling of DMA underrun. Now maybe the stopping audio is history...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2936 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 11:09:52 +00:00
Linus Nielsen Feltzing
62c3ba8204 Fixed a bug that prevented recording if music was playing when entering the recording screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2929 a1c6a512-1295-4272-9138-f99709370657
2002-12-05 00:28:28 +00:00
Linus Nielsen Feltzing
cde27c3909 Even more recording fixes. No more lockups (i hope)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2886 a1c6a512-1295-4272-9138-f99709370657
2002-11-25 20:16:44 +00:00
Linus Nielsen Feltzing
2c0b72f103 Saves battery when monitoring, no longer trashes the first frame, corrected DMA timing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2885 a1c6a512-1295-4272-9138-f99709370657
2002-11-25 00:02:54 +00:00
Linus Nielsen Feltzing
4432d3730d The saving flag wasn't correctly handled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2883 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 22:50:54 +00:00
Linus Nielsen Feltzing
6a24059392 Recording buffer saving mechanism was braindead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2881 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 11:49:17 +00:00
Linus Nielsen Feltzing
c833a816d8 Lots of MAS hacking for better recording results
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2878 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 00:23:49 +00:00
Linus Nielsen Feltzing
6871977d82 Optimized recording interrupt
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2873 a1c6a512-1295-4272-9138-f99709370657
2002-11-21 21:38:58 +00:00
Linus Nielsen Feltzing
79c5202e07 Experiment to cure the strange sound wuality problem with Line In recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2871 a1c6a512-1295-4272-9138-f99709370657
2002-11-21 18:57:15 +00:00
Linus Nielsen Feltzing
77d9c7cf84 More MAS voodoo resulting in more stable, maybe even working, recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2867 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 22:23:20 +00:00
Linus Nielsen Feltzing
5e15aeedfc Instantaneous start of recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2865 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 11:47:32 +00:00
Linus Nielsen Feltzing
6100dd099b New filename generation based on date/time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2863 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:02:52 +00:00
Linus Nielsen Feltzing
d703389780 More recording stability, plus some feedback
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2860 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 21:07:44 +00:00
Linus Nielsen Feltzing
11055c0471 Now sets the correct frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2859 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 16:30:53 +00:00
Linus Nielsen Feltzing
fde9b57f70 Fixed some sim build errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2856 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 10:29:38 +00:00
Linus Nielsen Feltzing
0dcd47eb84 Now uses IRQ for DEMAND instead of polling. This should improve the playback performance a lot, for all bitrates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2855 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 09:50:19 +00:00
Linus Nielsen Feltzing
1521a1c38a Slightly more correct saving when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2845 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:22:40 +00:00
Linus Nielsen Feltzing
71d346ce81 mpeg_stop() now yields to ensure that the mpeg is stopped when it returns
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2843 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 08:43:49 +00:00
Linus Nielsen Feltzing
f844ab207f Correct flags to the open() call when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2832 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 22:43:41 +00:00
Linus Nielsen Feltzing
1e524abd5b Added a timeout debug panic for the recording DMA protocol
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2825 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 13:24:41 +00:00
Linus Nielsen Feltzing
8e4a0e0aab An attempt to support older recorder models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2817 a1c6a512-1295-4272-9138-f99709370657
2002-11-10 18:24:40 +00:00
Linus Nielsen Feltzing
893095d4ce Added recording functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2815 a1c6a512-1295-4272-9138-f99709370657
2002-11-10 16:37:26 +00:00
Linus Nielsen Feltzing
c5e29938c4 Fast forward near the end of the last song in a playlist didn't activate the DMA if the remaining amount to play was below the watermark
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2754 a1c6a512-1295-4272-9138-f99709370657
2002-10-28 00:00:07 +00:00
Linus Nielsen Feltzing
c41322c591 Better skipping of leading garbage. Fixes bug #625868.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2752 a1c6a512-1295-4272-9138-f99709370657
2002-10-27 23:07:26 +00:00
Björn Stenberg
0834d3f322 Pitch steps changed to 0.1% instead of 1%.
Holding down ON+RIGHT/LEFT increases/decreses pitch 2% while key is held down, then returns.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2718 a1c6a512-1295-4272-9138-f99709370657
2002-10-18 12:05:15 +00:00
Linus Nielsen Feltzing
647db26fe8 Faster start of playback when Play/Next/Prev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2677 a1c6a512-1295-4272-9138-f99709370657
2002-10-16 09:26:03 +00:00
Daniel Stenberg
3aab18a5e8 Prevent the simulator from locking on play in a dir with all-empty files.
This doesn't do quite the same as the real code, but at least it doesn't
loop forever now.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2664 a1c6a512-1295-4272-9138-f99709370657
2002-10-15 13:07:32 +00:00
Linus Nielsen Feltzing
5c6ecc8980 Killed a sim warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2634 a1c6a512-1295-4272-9138-f99709370657
2002-10-15 07:28:57 +00:00
Linus Nielsen Feltzing
bf303de4dd More debug info
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2632 a1c6a512-1295-4272-9138-f99709370657
2002-10-15 07:23:18 +00:00
Linus Nielsen Feltzing
402502fc6f Swapping is now done without the MPEG_SWAP message. Added some debugging functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2623 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 14:13:13 +00:00
Linus Nielsen Feltzing
56e5d1a0a1 Better handling of bad playlists, and when all tracks fit in memory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2550 a1c6a512-1295-4272-9138-f99709370657
2002-10-09 13:47:38 +00:00