Commit graph

271 commits

Author SHA1 Message Date
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