Commit graph

113 commits

Author SHA1 Message Date
Linus Nielsen Feltzing
198245a85e Temporary fix for a nasty race condition when loading the voice file at boot
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12691 a1c6a512-1295-4272-9138-f99709370657
2007-03-09 09:21:11 +00:00
Miika Pekkarinen
7a395a23bf Start using the new endian conversion system outside tagcache also to simplify code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12309 a1c6a512-1295-4272-9138-f99709370657
2007-02-14 19:20:13 +00:00
Jens Arnold
2597a13497 Next round of static'ing and related fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11836 a1c6a512-1295-4272-9138-f99709370657
2006-12-25 14:01:47 +00:00
Miika Pekkarinen
c5d57f0aae Removed the cpu boost tracking debug feature for now because of
different kind of problems. Better implementation can be done later.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11665 a1c6a512-1295-4272-9138-f99709370657
2006-12-05 20:01:48 +00:00
Michael Sevakis
97d1ca5a23 SWCODEC: Audio-related threads must be free of further tasks before returning buffers. Cleanup declarations of related functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11618 a1c6a512-1295-4272-9138-f99709370657
2006-11-28 15:00:56 +00:00
Michael Sevakis
acc29d95be SWCODEC/IRAM: Save voice IRAM when a plugin initializes its IRAM. Defines two macros for declaring and initializing IRAM. Plugins should use these instead. See mp3_encoder, doom, etc. for details. Further tweaks in buffer restoration after other use. Hiding of some interfaces that should only be used by buffer management.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11544 a1c6a512-1295-4272-9138-f99709370657
2006-11-18 02:18:29 +00:00
Michael Sevakis
0f5cb94aa4 Big Patch adds primarily: Samplerate and format selection to recording for SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
2006-11-06 18:07:30 +00:00
Steve Bavin
71dd94a7eb A bit more voice simplification/MAS fixage (FS#6241). Also clear any buffered voice when playback is started.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11334 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 08:54:25 +00:00
Steve Bavin
ff5fd00de6 Oops, Archos still needs to stop voice.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11333 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 07:08:00 +00:00
Steve Bavin
f512558650 Only flush PCM buffered voice data when explicitly told to. Patch by Stephane Doyen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11331 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 06:19:27 +00:00
Steve Bavin
d49c810ec9 Add CPU boost tracker to see where boosts are coming from
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11125 a1c6a512-1295-4272-9138-f99709370657
2006-10-05 10:07:03 +00:00
Jonathan Gordon
7ae8e44c95 add some consistancy to the path #defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11114 a1c6a512-1295-4272-9138-f99709370657
2006-10-03 10:38:27 +00:00
Michael Sevakis
287deb0e74 Fixed voice units in recording quality and filesplit by size options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11063 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 17:44:43 +00:00
Michael Sevakis
4fc717a4c1 Added FS#2939 Encoder Codec Interface + Codecs by Antonius Hellmann with additional FM Recording support and my modifications
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10789 a1c6a512-1295-4272-9138-f99709370657
2006-08-28 22:38:41 +00:00
Linus Nielsen Feltzing
97b56a665c Patch #5844 by Steve Bavin - Fix confused voice file memory allocation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10711 a1c6a512-1295-4272-9138-f99709370657
2006-08-23 08:21:15 +00:00
Linus Nielsen Feltzing
42f0ad3c8f Patch #5766 by Steve Bavin - Fix for various voice related crashes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10590 a1c6a512-1295-4272-9138-f99709370657
2006-08-15 18:01:42 +00:00
Linus Nielsen Feltzing
30c618cd96 Patch #5690 by Steve Bavin - Fix for memory corruption when using .talk clips
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10396 a1c6a512-1295-4272-9138-f99709370657
2006-08-01 22:02:47 +00:00
Jens Arnold
2311eeaf5c Fix: -illons weren't voiced properly since the .lang rework.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9984 a1c6a512-1295-4272-9138-f99709370657
2006-05-25 12:45:57 +00:00
Jens Arnold
83f67db3ee Ondio: Two voice bugfixes. (1) When changing language and voice is enabled, do the voice file presence check the same way as on the other targets. Loading the tables right away when music is playing isn't a good idea... (2) Changing language with voice enabled leaked file handles.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9946 a1c6a512-1295-4272-9138-f99709370657
2006-05-15 21:00:58 +00:00
Jens Arnold
67de1d3d9b Thorough .lang rework: Removed all deprecated strings, combined string which were only split because long ago we had no splash(), sorted strings into logical groups to ease the transition to langv2. Bunped binary .lng version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9398 a1c6a512-1295-4272-9138-f99709370657
2006-04-01 13:36:33 +00:00
Jens Arnold
6f0a01e8e4 Ooops, this was not meant to be committed yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9124 a1c6a512-1295-4272-9138-f99709370657
2006-03-19 22:44:45 +00:00
Jens Arnold
f383cc14bd Voice working on the iPods.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9119 a1c6a512-1295-4272-9138-f99709370657
2006-03-19 16:09:41 +00:00
Magnus Holmgren
7ac7317038 Previous fix broke voice init when no language file had been selected. Fix that by making sure voice init is run at least once.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8848 a1c6a512-1295-4272-9138-f99709370657
2006-02-26 16:07:34 +00:00
Magnus Holmgren
b1c5676927 Quick fix to not stop audio playback on .cfg file load unless language setting has changed. (Could be taken one step further to only stop playback if there's been a change in voice file use.)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8817 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 21:29:29 +00:00
Daniel Stenberg
f981ea93fb kill gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
2005-12-05 22:44:42 +00:00
Miika Pekkarinen
0c1a2c7651 iRiver: Fixed a crash when loading a new configuration file and audio
is playing.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7521 a1c6a512-1295-4272-9138-f99709370657
2005-09-14 16:07:07 +00:00
Jens Arnold
d6c054575b Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and SWCODEC, respectively.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
2005-08-29 21:15:27 +00:00
Jens Arnold
451e2c077a Iriver: somewhat more efficient bitswap for voice files. No assembler this time since this is a temporary solution anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7381 a1c6a512-1295-4272-9138-f99709370657
2005-08-21 23:17:25 +00:00
Miika Pekkarinen
fa0cecf5a9 Fixed a bug that caused codec memory allocation buffer overwrite and
vorbis codec to crash.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7362 a1c6a512-1295-4272-9138-f99709370657
2005-08-20 18:49:14 +00:00
Miika Pekkarinen
159c52dd36 Initial voice ui support for software codec platforms. Added also a
beep when changing tracks.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7360 a1c6a512-1295-4272-9138-f99709370657
2005-08-20 11:13:19 +00:00
Linus Nielsen Feltzing
a12ccabf04 Don't bitswap on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6583 a1c6a512-1295-4272-9138-f99709370657
2005-06-06 00:34:07 +00:00
Linus Nielsen Feltzing
d34865a530 mp3buf renamed to audiobuf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6252 a1c6a512-1295-4272-9138-f99709370657
2005-04-05 11:33:58 +00:00
Linus Nielsen Feltzing
8a237a829e More audio code restructuring, mostly renaming functions so far
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6246 a1c6a512-1295-4272-9138-f99709370657
2005-04-04 12:06:29 +00:00
Jean-Philippe Bernardy
45e0de3e63 long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5929 a1c6a512-1295-4272-9138-f99709370657
2005-02-12 11:26:36 +00:00
Daniel Stenberg
003c0d2dae Make SH-specific code properly #ifdef'ed. We should consider doing these
slightly nicer with function calls or something.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5746 a1c6a512-1295-4272-9138-f99709370657
2005-02-02 21:50:24 +00:00
Jens Arnold
1a479d634d Late-add the final silence clip to the queue. This ensures correct shutup() while that clip is playing. Swallowed clip beginnings should be finally gone now. Optimization of the queue pointer handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5425 a1c6a512-1295-4272-9138-f99709370657
2004-11-18 22:59:20 +00:00
Jens Arnold
fee06d68c7 Bug fix: First dereference, then subscript, instead of vice versa. The old code never stored the correct header, and even caused NULL pointer accesses.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5424 a1c6a512-1295-4272-9138-f99709370657
2004-11-18 20:19:40 +00:00
Jörg Hohensohn
24e6dffa50 append the "silence" clip at the end of voice output, this avoids clicks and missing ends especially with low bitrates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5423 a1c6a512-1295-4272-9138-f99709370657
2004-11-17 22:30:38 +00:00
Jörg Hohensohn
ae34f64dbf spell "dot" instead of "point", requires up-to-date voice files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5345 a1c6a512-1295-4272-9138-f99709370657
2004-10-25 20:44:37 +00:00
Jörg Hohensohn
de79e68b09 new voice ID for the space character, allows to spell with a pause, once this is in the voice files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5333 a1c6a512-1295-4272-9138-f99709370657
2004-10-23 17:58:38 +00:00
Jörg Hohensohn
40ae63b4fc Improvement for talking filenames: While loading the directory, already cache for which files are clips available. This avoids unsuccessful spinups while browsing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5317 a1c6a512-1295-4272-9138-f99709370657
2004-10-21 18:34:48 +00:00
Jörg Hohensohn
a7aa17ac1b for slow MMC device (Ondio): load voice file piecewise, as needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5262 a1c6a512-1295-4272-9138-f99709370657
2004-10-12 16:43:22 +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
Jörg Hohensohn
3e41780d44 loading a setting (and internally calling talk_init) caused the playback to stop
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5027 a1c6a512-1295-4272-9138-f99709370657
2004-08-31 22:13:20 +00:00
Jens Arnold
033ba1669b Made local constant arrays static, saving a few bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5014 a1c6a512-1295-4272-9138-f99709370657
2004-08-26 20:30:22 +00:00
Jens Arnold
8fb336148f Const policed pointer arguments to functions, part 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4999 a1c6a512-1295-4272-9138-f99709370657
2004-08-18 01:09:31 +00:00
Jens Arnold
839067b7b3 More const policeing step 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4980 a1c6a512-1295-4272-9138-f99709370657
2004-08-01 23:34:44 +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
Jörg Hohensohn
267d8ebd89 After much debating, it has been decided to name talkbox clips "_dirname.talk". Please either bulk-rename your clips, or delete and re-generate them with an updated script.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4687 a1c6a512-1295-4272-9138-f99709370657
2004-05-21 22:26:25 +00:00
Jörg Hohensohn
2fef5b7b4a While searching the voice crash like a madman, I made this module a lot more safe, so I can as well commit that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4598 a1c6a512-1295-4272-9138-f99709370657
2004-05-09 09:41:23 +00:00
Jörg Hohensohn
c49129cacd minor improvement to make the clip switch safer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4528 a1c6a512-1295-4272-9138-f99709370657
2004-04-20 22:11:20 +00:00
Jörg Hohensohn
c898a02bb4 fixed the missing first part of voice problem when switching clips, although not very nice (messing with the DMA in application code)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4527 a1c6a512-1295-4272-9138-f99709370657
2004-04-20 21:47:07 +00:00
Jörg Hohensohn
99483dee1c talkbox clip renamed to ".dirname.tbx", most people voted for a non-mp3 extension
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4485 a1c6a512-1295-4272-9138-f99709370657
2004-04-10 09:04:26 +00:00
Jörg Hohensohn
6e77d1fe39 Voice UI searches for <mylanguage>.voice, no hard-coded "english.voice" any more. We can localize the voice now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4471 a1c6a512-1295-4272-9138-f99709370657
2004-04-06 07:06:59 +00:00
Jörg Hohensohn
c8592bac33 Voice UI: option to spell dirs/files, say (known) extension with file number, minor fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4465 a1c6a512-1295-4272-9138-f99709370657
2004-04-04 19:08:44 +00:00
Jörg Hohensohn
f9495cba65 Changed concept for voice IDs: the voice-only IDs now are in a separate range, don't generate an empty language string. This saves memory, but requires a new voice file format with 2 tables.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4463 a1c6a512-1295-4272-9138-f99709370657
2004-04-03 20:52:24 +00:00
Jörg Hohensohn
b109c1e910 insert a dummy frame before changing clips (still no major improvement), back to the previous frame search algorithm because the talkbox clips can be quite different
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4449 a1c6a512-1295-4272-9138-f99709370657
2004-03-29 08:19:47 +00:00
Jörg Hohensohn
3aa99e14cd Step 4 of voice UI:
- "talkbox" functionality added, but yet without thumbnail recording
- menu under "general settings" to configure voice
- directories and folders can be voiced as a numbers


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4440 a1c6a512-1295-4272-9138-f99709370657
2004-03-27 00:11:01 +00:00
Linus Nielsen Feltzing
1c92b6bd09 Slightly better method of finding the next frame
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4435 a1c6a512-1295-4272-9138-f99709370657
2004-03-23 11:49:09 +00:00
Linus Nielsen Feltzing
9e11ff81d5 talk_value() and talk_number() didn't check if the music was playing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4431 a1c6a512-1295-4272-9138-f99709370657
2004-03-22 12:34:06 +00:00
Jörg Hohensohn
590e6af888 First try to get a better transition from a cancelled clip to a new one, by maintaining the frame sync. Doesn't seem to have much effect, though.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4425 a1c6a512-1295-4272-9138-f99709370657
2004-03-21 17:45:45 +00:00
Jörg Hohensohn
beec2e97e6 Overlooked to "voice" the set_int() function, this is why many numerical setting remained silent.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4416 a1c6a512-1295-4272-9138-f99709370657
2004-03-20 16:49:58 +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