Commit graph

379 commits

Author SHA1 Message Date
Linus Nielsen Feltzing
9bcc351dd2 Ooops! I wrote garbage to the MAS when stopping the recording.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4724 a1c6a512-1295-4272-9138-f99709370657
2004-06-09 11:01:22 +00:00
Linus Nielsen Feltzing
313f67651f We now put ID3v2.3 tags in the recorded files instead of ID3v2.4, because some auido editing tools can't handle ID3v2.4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4720 a1c6a512-1295-4272-9138-f99709370657
2004-06-04 11:49:15 +00:00
Linus Nielsen Feltzing
ccd589746a Removed unused variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4718 a1c6a512-1295-4272-9138-f99709370657
2004-06-04 10:45:38 +00:00
Linus Nielsen Feltzing
ce3482cbf5 The MAS3587F data sheet was wrong about having to validate the pause bit setting by writing to d0:7f1. When I removed the validation, the MAS doesn't give us corrupt frames when pausing, or at the end of the recording.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4717 a1c6a512-1295-4272-9138-f99709370657
2004-06-04 10:40:26 +00:00
Linus Nielsen Feltzing
f487ebe376 The Play button now acts as a Pause button during recording instead of opening a new file. The new-file feature is moved to the F3 button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4715 a1c6a512-1295-4272-9138-f99709370657
2004-06-03 12:10:40 +00:00
Jörg Hohensohn
30c338a4c1 Prevent spurious bitswapping of the mp3 buffer: stop_playing() now calls reset_mp3_buffer() and so makes sure the bitswap ends. (This was the reason for the failing voice UI after playback!) I also removed a few lines of redundant code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4597 a1c6a512-1295-4272-9138-f99709370657
2004-05-09 09:36:58 +00:00
Jens Arnold
2cae1dae1c Unified & assembler optimized recording transfer routines: Smaller & 50% faster
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4576 a1c6a512-1295-4272-9138-f99709370657
2004-05-04 06:29:41 +00:00
Linus Nielsen Feltzing
a1273a4f2e Removed some debugging code that shouldn't have been committed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4533 a1c6a512-1295-4272-9138-f99709370657
2004-04-21 06:46:59 +00:00
Linus Nielsen Feltzing
66cda8cab1 Fixed bug #932467, where there could be a deadlock if you pause the playback before the initial bitswapping is done
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4482 a1c6a512-1295-4272-9138-f99709370657
2004-04-09 21:03:09 +00:00
Linus Nielsen Feltzing
5248641b40 Some bug fixes in the recording code. The recorded frames weren't CRC protected as intended, and the first frame could be incomplete. Also reduced the I2C communication by shadowing the MAS registers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4462 a1c6a512-1295-4272-9138-f99709370657
2004-04-01 14:07:56 +00:00
Linus Nielsen Feltzing
22c0a2d747 Fixed the prerecording as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4453 a1c6a512-1295-4272-9138-f99709370657
2004-03-30 08:28:24 +00:00
Linus Nielsen Feltzing
d554d801f5 Fixed the problem when high quality recordings could start with a corrupt frame
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4452 a1c6a512-1295-4272-9138-f99709370657
2004-03-30 08:21:53 +00:00
Jörg Hohensohn
fa97f161ab Third step of the voice-UI: numerical settings are spoken (composed at runtime), needs new voicefont at the new location ".rockbox/langs/english.voice"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4414 a1c6a512-1295-4272-9138-f99709370657
2004-03-19 22:15:53 +00:00
Jörg Hohensohn
38ac78ae97 killed an overlooked warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4382 a1c6a512-1295-4272-9138-f99709370657
2004-03-14 22:02:53 +00:00
Jörg Hohensohn
4f36ea8fbf First step of the voice-UI: the menus can talk. You need a "voicefont" file in .rockbox to use this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4381 a1c6a512-1295-4272-9138-f99709370657
2004-03-14 21:33:53 +00:00
Jörg Hohensohn
fbea708b2e Feature for recording: Delayed file open avoids disk spinup as long as the buffer lasts. So for short clips the internal mic can be used without disturbance.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4367 a1c6a512-1295-4272-9138-f99709370657
2004-03-11 19:27:26 +00:00
Daniel Stenberg
d815ad6035 Added mpeg_next_track(), which returns a pointer to the id3 struct of the
upcoming song (if available).

Now we just need a WPS patch to make it possibly to display info based on
this!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4240 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 15:32:49 +00:00
Linus Nielsen Feltzing
bc9f60deb7 mpeg_stop() now clears the paused flag in the simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4224 a1c6a512-1295-4272-9138-f99709370657
2004-01-13 12:40:52 +00:00
Jörg Hohensohn
ec5d44627f next round of playback function split: everything in place, working and used; except for the playtime
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4218 a1c6a512-1295-4272-9138-f99709370657
2004-01-10 15:39:56 +00:00
Linus Nielsen Feltzing
cd8847b883 Fixed the newly introduced hang when leaving the recording screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4202 a1c6a512-1295-4272-9138-f99709370657
2004-01-08 11:18:01 +00:00
Jörg Hohensohn
e412a98203 typo: one create_thread() too many, caused crash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4196 a1c6a512-1295-4272-9138-f99709370657
2004-01-06 08:15:18 +00:00
Jörg Hohensohn
881b53ff3f fixes the red builds, I hope
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4193 a1c6a512-1295-4272-9138-f99709370657
2004-01-05 22:46:54 +00:00
Jörg Hohensohn
f993365447 Moved the low-level playback functionality into a new, separate module "mp3_playback". This e.g. allows to export a memory playback API to the plugins, opens the door to games with sound, UI sounds, etc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4192 a1c6a512-1295-4272-9138-f99709370657
2004-01-05 20:42:51 +00:00
Linus Nielsen Feltzing
74976c1484 New recording feature: Prerecord up to 30 seconds before you press the Play key. Especially useful for FM radio recording. Also fixed a bug which didn't apply the recording settings correctly in the Radio screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4183 a1c6a512-1295-4272-9138-f99709370657
2003-12-31 03:13:29 +00:00
Linus Nielsen Feltzing
1c4ea83bba Fixed yellow and red builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4182 a1c6a512-1295-4272-9138-f99709370657
2003-12-28 14:53:13 +00:00
Linus Nielsen Feltzing
a9875a96d2 Internal code cleanup - the header template for the Xing header generation is read from the MAS instead of from the recorded file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4179 a1c6a512-1295-4272-9138-f99709370657
2003-12-28 03:37:23 +00:00
Daniel Stenberg
e580f4e174 restart the byte counter on a new recorded file
patch #846899 by Alexander Eickhoff


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4141 a1c6a512-1295-4272-9138-f99709370657
2003-12-12 15:52:51 +00:00
Daniel Stenberg
4009334d33 All platforms don't have USB
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4134 a1c6a512-1295-4272-9138-f99709370657
2003-12-12 13:30:15 +00:00
Hardeep Sidhu
166dc17437 In simulator thread, increment id3 offset along with elapsed time so that resume settings are periodically updated.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4120 a1c6a512-1295-4272-9138-f99709370657
2003-12-09 08:15:22 +00:00
Linus Nielsen Feltzing
aaa99e70ba Recording in FM screen, USB mode possible in FM and recording screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4046 a1c6a512-1295-4272-9138-f99709370657
2003-11-20 00:33:43 +00:00
Linus Nielsen Feltzing
bef7ab0c26 The code police strikes back
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 12:15:24 +00:00
Jörg Hohensohn
75bab49a54 set/clear port bits with atomic instructions instead of read-modify-write, saves time+space, allows port usage in ISR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4022 a1c6a512-1295-4272-9138-f99709370657
2003-11-06 01:34:50 +00:00
Linus Nielsen Feltzing
c22b411731 Patch #798050 by Leslie Donaldson, activates Line In on Player models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4008 a1c6a512-1295-4272-9138-f99709370657
2003-11-03 23:36:36 +00:00
Linus Nielsen Feltzing
51d962f99b Another fix for bug #835158, now handles multiple splits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4007 a1c6a512-1295-4272-9138-f99709370657
2003-11-03 21:05:46 +00:00
Linus Nielsen Feltzing
532eb411ac Now handles empty recordings without crashing. This fixes bug #835158.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4006 a1c6a512-1295-4272-9138-f99709370657
2003-11-03 20:06:21 +00:00
Linus Nielsen Feltzing
e396c77749 Killed a warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3999 a1c6a512-1295-4272-9138-f99709370657
2003-11-02 12:03:30 +00:00
Linus Nielsen Feltzing
24a8b6ad09 Frame-accurate file splits when recording. Now the PLAY button closes the current file and opens a new one.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3998 a1c6a512-1295-4272-9138-f99709370657
2003-11-02 11:24:38 +00:00
Björn Stenberg
972f431ef4 Resume rounding error fixes (patch #783078 by Harold Toler)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3978 a1c6a512-1295-4272-9138-f99709370657
2003-10-17 15:11:09 +00:00
Björn Stenberg
67a8bdce7c Fixed ff/rew rounding error (patch #783525 by Harold Toler)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3977 a1c6a512-1295-4272-9138-f99709370657
2003-10-17 15:03:23 +00:00
Linus Nielsen Feltzing
2ec8e7d72b The 'rec upd' panic now prints the filename as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3973 a1c6a512-1295-4272-9138-f99709370657
2003-10-15 09:33:29 +00:00
Hardeep Sidhu
4160b75456 Pass actual time instead of offset to mpeg_ff_rewind. Fixes ff/rew to wrong time when mpeg thread is busy loading data.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3943 a1c6a512-1295-4272-9138-f99709370657
2003-08-29 04:36:35 +00:00
Hardeep Sidhu
18261c94ca Reset playing variables when usb connected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3935 a1c6a512-1295-4272-9138-f99709370657
2003-08-20 02:11:00 +00:00
Linus Nielsen Feltzing
4bb3f80f27 Setting the lowest mic gain no longer turns off the mic (bug #774349)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3865 a1c6a512-1295-4272-9138-f99709370657
2003-07-22 18:34:23 +00:00
Björn Stenberg
1a658f0c4e Only recorders use PA11 for /PR. Players use it for the STOP button...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3801 a1c6a512-1295-4272-9138-f99709370657
2003-07-02 19:44:15 +00:00
Jörg Hohensohn
3a36a57005 Another port init fixes the silent play problem, Rockbox is now ready for FLASH!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3793 a1c6a512-1295-4272-9138-f99709370657
2003-07-01 07:03:27 +00:00
Linus Nielsen Feltzing
82e44bb53c The mono recording fix was braindead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3791 a1c6a512-1295-4272-9138-f99709370657
2003-07-01 01:19:56 +00:00
Jörg Hohensohn
5604b97502 missing port init prevented recording with Rockbox from flash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3790 a1c6a512-1295-4272-9138-f99709370657
2003-06-30 21:04:28 +00:00
Linus Nielsen Feltzing
9c6abb19ae Mono recording with Line In now mixes the left and right channel. Fixes bug #753084.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3786 a1c6a512-1295-4272-9138-f99709370657
2003-06-30 01:49:55 +00:00
Björn Stenberg
a4baacd3ec Renamed flush() to fsync() to be more in line with POSIX/unix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3766 a1c6a512-1295-4272-9138-f99709370657
2003-06-29 13:17:19 +00:00
Hardeep Sidhu
df34e6b71a In flush_reload, don't reset swapwrite if we're still swapping current track. Fixes a silent play bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3760 a1c6a512-1295-4272-9138-f99709370657
2003-06-25 15:17:04 +00:00
Linus Nielsen Feltzing
c6db7870ef Slightly better handling of disk-full situations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3756 a1c6a512-1295-4272-9138-f99709370657
2003-06-19 12:08:22 +00:00
Linus Nielsen Feltzing
a9944c385b Better file system performance when recording by not using O_TRUNC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3709 a1c6a512-1295-4272-9138-f99709370657
2003-05-30 01:19:25 +00:00
Linus Nielsen Feltzing
20d031f9c7 Configurable dir browser file buffer size. No more 400-file limit. No more whining.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3661 a1c6a512-1295-4272-9138-f99709370657
2003-05-09 16:01:21 +00:00
Linus Nielsen Feltzing
0a12f4e296 Stop radio when playing mp3 files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3641 a1c6a512-1295-4272-9138-f99709370657
2003-05-03 10:03:30 +00:00
Linus Nielsen Feltzing
c7e0ebc282 Spin down disk directly after buffer saves when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3630 a1c6a512-1295-4272-9138-f99709370657
2003-04-30 01:41:11 +00:00
Linus Nielsen Feltzing
478da628f0 Xing headers now support mono better, added the 'editable files' option
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3572 a1c6a512-1295-4272-9138-f99709370657
2003-04-20 22:00:30 +00:00
Linus Nielsen Feltzing
7fdef57d57 Better generation of Xing headers, now they contain the correct MPEG version and sample rate info.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3567 a1c6a512-1295-4272-9138-f99709370657
2003-04-19 01:59:23 +00:00
Linus Nielsen Feltzing
1cc6d829a1 Safer low water mark when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3557 a1c6a512-1295-4272-9138-f99709370657
2003-04-15 08:16:27 +00:00
Linus Nielsen Feltzing
35c417f1d4 Fixed the dreaded 'silent play' bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3541 a1c6a512-1295-4272-9138-f99709370657
2003-04-12 09:38:33 +00:00
Linus Nielsen Feltzing
6fc0df9ebb Now creates an empty ID3 header to not confuse MP3 editors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3539 a1c6a512-1295-4272-9138-f99709370657
2003-04-11 23:45:38 +00:00
Linus Nielsen Feltzing
9d860e19d2 Better handling of next/prev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3528 a1c6a512-1295-4272-9138-f99709370657
2003-04-11 00:29:15 +00:00
Björn Stenberg
46dea9080b Added missing gain setting code (Henrik Backe)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3521 a1c6a512-1295-4272-9138-f99709370657
2003-04-09 11:58:36 +00:00
Linus Nielsen Feltzing
9218481199 Ooops, forgot to check for frame count overflow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3508 a1c6a512-1295-4272-9138-f99709370657
2003-04-01 21:58:50 +00:00
Linus Nielsen Feltzing
a67e8ec52f Killed a warning (saving 417 bytes in the process :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3507 a1c6a512-1295-4272-9138-f99709370657
2003-04-01 21:27:31 +00:00
Linus Nielsen Feltzing
2bf4a05410 Recorded files shorter than 3 hours now show correct average bitrate even without VBRFix.
Moved some code around.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3505 a1c6a512-1295-4272-9138-f99709370657
2003-04-01 20:58:31 +00:00
Linus Nielsen Feltzing
d0c193d159 Finally, S/PDIF monitoring works
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3499 a1c6a512-1295-4272-9138-f99709370657
2003-03-25 02:13:54 +00:00
Linus Nielsen Feltzing
27539aa828 Fixed silly overflow in recalculate_watermark()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3494 a1c6a512-1295-4272-9138-f99709370657
2003-03-24 11:40:59 +00:00
Linus Nielsen Feltzing
001226c7e1 patch #702874 by Craig Sather, fixes a pause bug in WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3447 a1c6a512-1295-4272-9138-f99709370657
2003-03-15 12:09:09 +00:00
Linus Nielsen Feltzing
2c07e78efc Don't accidentally add Xing headers to CBR files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3419 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 18:25:40 +00:00
Linus Nielsen Feltzing
6475aa0c85 Experimental Xing header generation added. Use with caution
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3418 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 18:05:01 +00:00
Linus Nielsen Feltzing
673937d654 Faster disk updates with the flush() function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3417 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 17:12:27 +00:00
Linus Nielsen Feltzing
a039091187 New ID3 and MP3 stream parser, plus not-yet-ready Xing header generation code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3410 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 14:55:31 +00:00
Uwe Freese
21130ebc29 Found the only one point that led to imcompatibility of the CVS code with a 8MB AJB. Finally, CVS is 8 MB-mod compliant. :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3374 a1c6a512-1295-4272-9138-f99709370657
2003-03-03 14:05:47 +00:00
Linus Nielsen Feltzing
680b12c0c2 Even more return code checking when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3366 a1c6a512-1295-4272-9138-f99709370657
2003-03-02 23:04:39 +00:00
Linus Nielsen Feltzing
cc136c5c60 Now correctly skips ID3V1 tags to avoid gaps between tracks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3365 a1c6a512-1295-4272-9138-f99709370657
2003-03-02 03:58:54 +00:00
Björn Stenberg
6da56d9f08 Added three new channel modes: Stereo narrow, Stereo wide, and Karaoke (voice filter). Patch by Remo Hofer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3356 a1c6a512-1295-4272-9138-f99709370657
2003-02-27 15:02:20 +00:00
Linus Nielsen Feltzing
94dea1e020 Safer recording, now closes the file after each successful buffer save
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3321 a1c6a512-1295-4272-9138-f99709370657
2003-02-22 01:40:57 +00:00
Björn Stenberg
c4d8d970f6 The power-saving SLEEP patch by Simon Elén.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3259 a1c6a512-1295-4272-9138-f99709370657
2003-02-14 09:44:34 +00:00
Linus Nielsen Feltzing
1fcd31d3ff Fixed the 3-hour time display bug, plus some cosmetic changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3253 a1c6a512-1295-4272-9138-f99709370657
2003-02-14 02:48:12 +00:00
Linus Nielsen Feltzing
ebe0752469 Correct saving of channel config (patch by Remo Hofer)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3252 a1c6a512-1295-4272-9138-f99709370657
2003-02-14 01:49:50 +00:00
Linus Nielsen Feltzing
bf0ac613ea Killed a nasty bug that could leave the recorded file open. This will cause the file to be 0 bytes long.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3247 a1c6a512-1295-4272-9138-f99709370657
2003-02-13 16:25:36 +00:00
Björn Stenberg
b4902aff71 Better simulator mpeg emulation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3232 a1c6a512-1295-4272-9138-f99709370657
2003-02-11 14:20:54 +00:00
Linus Nielsen Feltzing
c43a307011 Added some debugging info to chase the 3-hour time display bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3227 a1c6a512-1295-4272-9138-f99709370657
2003-02-08 02:59:47 +00:00
Daniel Stenberg
f9b4490066 Include File Cleanup And Move-Around Party 2003.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3213 a1c6a512-1295-4272-9138-f99709370657
2003-02-07 09:41:57 +00:00
Mats Lidell
74cc9e41fa Remove use of rockbox-mode.el in local variables list.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2003-01-24 10:56:06 +00:00
Linus Nielsen Feltzing
9a9d9d046d Decreased the DMA transfer size, as proposed by Gerald Clark
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3138 a1c6a512-1295-4272-9138-f99709370657
2003-01-21 00:11:10 +00:00
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
Linus Nielsen Feltzing
33060d00c2 New version of the DMA underrun handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2547 a1c6a512-1295-4272-9138-f99709370657
2002-10-09 13:25:03 +00:00
Linus Nielsen Feltzing
26e7ec4787 Buffer underrun handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2544 a1c6a512-1295-4272-9138-f99709370657
2002-10-09 09:15:28 +00:00
Uwe Freese
ee7a8889af returned avc value was always 0 (auto volume in cfg wasn't working)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2537 a1c6a512-1295-4272-9138-f99709370657
2002-10-08 20:28:08 +00:00
Linus Nielsen Feltzing
6f62bc2769 Removed warning on debug builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2530 a1c6a512-1295-4272-9138-f99709370657
2002-10-08 12:18:12 +00:00
Linus Nielsen Feltzing
6ce6d468dd Removed some more rounding of addresses
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2520 a1c6a512-1295-4272-9138-f99709370657
2002-10-08 08:02:58 +00:00
Linus Nielsen Feltzing
03c13a1a3b Back to byte-aligned bitswapping
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2519 a1c6a512-1295-4272-9138-f99709370657
2002-10-08 07:43:52 +00:00
Hardeep Sidhu
c53859388f When ffw/rew, correctly handle case where mpeg_file < 0 (eg. when playing last song of playlist with repeat off)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2505 a1c6a512-1295-4272-9138-f99709370657
2002-10-04 16:39:02 +00:00
Björn Stenberg
a6d0abb602 Repeat off/all/one toggle. By Hardeep Sidhu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2498 a1c6a512-1295-4272-9138-f99709370657
2002-10-04 08:48:20 +00:00
Linus Nielsen Feltzing
35913c717c mpeg_phys2val() scaled the volume incorrectly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2496 a1c6a512-1295-4272-9138-f99709370657
2002-10-04 07:42:13 +00:00
Linus Nielsen Feltzing
cd517cc3a2 Sim warning removed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2490 a1c6a512-1295-4272-9138-f99709370657
2002-10-03 12:07:17 +00:00
Robert Hak
2379f0b449 minor edits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2488 a1c6a512-1295-4272-9138-f99709370657
2002-10-03 09:52:30 +00:00
Robert Hak
0478236611 volume now increments by 1 not 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2487 a1c6a512-1295-4272-9138-f99709370657
2002-10-03 09:40:19 +00:00
Linus Nielsen Feltzing
40ffbb1a89 Resetting settings in the menu now applies the settings as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2486 a1c6a512-1295-4272-9138-f99709370657
2002-10-03 09:31:01 +00:00
Hardeep Sidhu
67f95ecb28 Make sure the buffer data has been swapped before resuming after ffw.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2483 a1c6a512-1295-4272-9138-f99709370657
2002-10-03 07:28:28 +00:00