Commit graph

300 commits

Author SHA1 Message Date
Jens Arnold
e1a1926f46 Use the register shadow variable in all places.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5539 a1c6a512-1295-4272-9138-f99709370657
2005-01-09 00:58:59 +00:00
Jörg Hohensohn
dfa95c334b different kind of recording beep: more faint, but not disturbing prerecording, can beep while we already record (no latency due to beep)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5511 a1c6a512-1295-4272-9138-f99709370657
2004-12-24 08:42:45 +00:00
Jörg Hohensohn
3bf321ff1c aid for blind recorders: longer beep when starting a recording, short beep when resuming it (you may disable the voice UI to get rid of it)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5502 a1c6a512-1295-4272-9138-f99709370657
2004-12-21 23:49:43 +00:00
Linus Nielsen Feltzing
34145af486 Simplified ID3 tag handling, removing the nasty NULL pointer accesses. Correct handling of missing/corrupt tracks in playlists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5416 a1c6a512-1295-4272-9138-f99709370657
2004-11-17 12:42:43 +00:00
Linus Nielsen Feltzing
685aeb5d7d Handle invalid playlist entries properly in new_file(). This fixes bug report #1060759
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5410 a1c6a512-1295-4272-9138-f99709370657
2004-11-15 00:34:19 +00:00
Linus Nielsen Feltzing
319d5f7101 new_file() now correctly bails out if all files in the playlist are corrupt. This fixes bug report #1060753.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5383 a1c6a512-1295-4272-9138-f99709370657
2004-11-05 07:43:39 +00:00
Linus Nielsen Feltzing
2df45f784f Update pause_start_time when creating new files. Fixes bug report #988839.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5342 a1c6a512-1295-4272-9138-f99709370657
2004-10-25 12:04:45 +00:00
Linus Nielsen Feltzing
72d2535a49 Stepping backwards over non-existing files now works. Thanks to Christian Marg for pinpointing the problem.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5249 a1c6a512-1295-4272-9138-f99709370657
2004-10-11 07:55:45 +00:00
Jens Arnold
5ae37f0ddb Limit read chunk size for MMC to 256 KB. Fixes playback problems for high-bitrate files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5235 a1c6a512-1295-4272-9138-f99709370657
2004-10-09 12:42:56 +00:00
Björn Stenberg
ebbe0a77ae Removed erroneous comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5181 a1c6a512-1295-4272-9138-f99709370657
2004-10-06 07:14:17 +00:00
Jens Arnold
eaa1f73c6d Added MAS3539F support (Ondio SP)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5129 a1c6a512-1295-4272-9138-f99709370657
2004-09-29 19:51:41 +00:00
Jörg Hohensohn
593cc00447 a hell of a commit: changed several HAVE_xx configuration flags into multiple choice values (keypad, tuner, CPU, h/w codec)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5126 a1c6a512-1295-4272-9138-f99709370657
2004-09-28 22:13:26 +00:00
Jens Arnold
4341211ddc Added header file for bitswap, and made the fliptable global for re-use
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5120 a1c6a512-1295-4272-9138-f99709370657
2004-09-26 09:25:59 +00:00
Jens Arnold
7464fb97e9 Bug fix: recording does no longer hang after 30 bytes (especially when running from ROM)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5009 a1c6a512-1295-4272-9138-f99709370657
2004-08-23 23:05:55 +00:00
Jens Arnold
c76c568b35 Const policed pointer arguments to functions, part 1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4995 a1c6a512-1295-4272-9138-f99709370657
2004-08-16 23:37:23 +00:00
Jens Arnold
536dff1a27 Corrected MAS version checks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4989 a1c6a512-1295-4272-9138-f99709370657
2004-08-05 17:06:31 +00:00
Jens Arnold
9478cc6f8a More const policeing step 4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4983 a1c6a512-1295-4272-9138-f99709370657
2004-08-03 19:22:56 +00:00
Linus Nielsen Feltzing
0744c50a38 Two new exported functions: mpeg_get_last_header() and mpeg_file_pos()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4973 a1c6a512-1295-4272-9138-f99709370657
2004-07-29 13:58:16 +00:00
Linus Nielsen Feltzing
f4f4111536 Added possibility to select the priority of the ID3 tags
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4962 a1c6a512-1295-4272-9138-f99709370657
2004-07-27 14:10:48 +00:00
Linus Nielsen Feltzing
4242a34ad6 Patch #961687 by Eric Lassauge, MP3 playback using libmad in the X11 simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4849 a1c6a512-1295-4272-9138-f99709370657
2004-07-08 10:12:39 +00:00
Linus Nielsen Feltzing
012c541d80 Don't create a Xing header if nothing has been recorded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4838 a1c6a512-1295-4272-9138-f99709370657
2004-07-06 06:32:38 +00:00
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