1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware
Michael Sevakis 4888131972 Update software recording engine to latest codec interface.
Basically, just give it a good rewrite.

Software codec recording can be implemented in a more straightforward
and simple manner and made more robust through the better codec
control now available.

Encoded audio buffer uses a packed format instead of fixed-size
chunks and uses smaller data headers leading to more efficient usage.
The greatest benefit is with a VBR format like wavpack which needs
to request a maximum size but only actually ends up committing part
of that request.

No guard buffers are used for either PCM or encoded audio. PCM is
read into the codec's provided buffer and mono conversion done at
that time in the core if required. Any highly-specialized sample
conversion is still done within the codec itself, such as 32-bit
(wavpack) or interleaved mono (mp3).

There is no longer a separate filename array. All metadata goes
onto the main encoded audio buffer, eliminating any predermined
file limit on the buffer as well as not wasting the space for
unused path queue slots.

The core and codec interface is less awkward and a bit more sensible.
Some less useful interface features were removed. Threads are kept
on narrow code paths ie. the audio thread never calls encoding
functions and the codec thread never calls file functions as before.

Codecs no longer call file functions directly. Writes are buffered
in the core and data written to storage in larger chunks to speed up
flushing of data. In fact, codecs are no longer aware of the stream
being a file at all and have no access to the fd.

SPDIF frequency detection no longer requires a restart of recording
or plugging the source before entering the screen. It will poll
for changes and update when stopped or prerecording (which does
discard now-invalid prerecorded data).

I've seen to it that writing a proper header on full disk works
when the format makes it reasonably practical to do so. Other cases
may have incorrect data sizes but sample info will be in tact. File
left that way may play anyway.

mp3_enc.codec acquires the ability to write 'Info' headers with LAME
tags to make it gapless (bonus).

Change-Id: I670685166d5eb32ef58ef317f50b8af766ceb653
Reviewed-on: http://gerrit.rockbox.org/493
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested-by: Michael Sevakis <jethead71@rockbox.org>
2013-06-30 00:40:27 +02:00
..
asm Revert "SH gcc 4.6.3 with link-time optimization, for Archos targets" 2012-10-24 14:05:39 +02:00
common Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
decompressor
drivers imx233: allow audio routing driver to have pre/post init functions 2013-06-18 21:27:29 +02:00
export Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
include Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
libc gmtime: avoid a modulus 2012-03-18 10:09:08 +01:00
target Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
test Fix test fat failing on 64bit system (second bit of FS#12646) 2012-05-08 13:00:56 +02:00
usbstack imx233: fix ocotop/debug and usb-core for stmp3600 2013-06-24 13:17:17 +02:00
arabjoin.c
arabjoin.h
ata_idle_notify.c
backlight-sw-fading.c
backlight.c
bidi.c
buflib.c buflib: Allow handle to be freed entirely during the shrink callback. 2013-06-24 15:24:34 +02:00
COPYING
core_alloc.c Integrate the warble tool in the regular build system. 2012-03-03 20:19:08 +01:00
debug.c
eeprom_settings.c
enc_base.c
events.c
firmware.make Add framework to let make automatically pick optimized asm implementations over generic C ones to firmware. 2012-01-22 18:46:45 +01:00
font.c Fix checks on buflib allocated handles (0 is not a valid handle value) 2012-06-10 17:15:47 +02:00
font_cache.c
general.c
hangul.c
ifp_usb_serial.c
kernel.c kernel: Allow queue_wait_w_tmo() to be called with TIMEOUT_BLOCK. 2012-09-28 19:40:17 +02:00
load_code.c load_code: Get rid of win32 specific code in favor SDL_LoadFunction & friends APIs. 2012-05-26 22:46:56 +02:00
logf.c Remove copy/pasted preprocessor defines that shouldn't have been included. 2012-08-06 19:20:47 -04:00
lru.c
panic.c panicf(): fix wrong font and colors being displayed. 2012-03-30 11:23:07 +02:00
pcm.c Provide high resolution volume and prescaler to hosted targets. 2013-04-27 06:59:27 +02:00
pcm_mixer.c Add a true waveform display to the oscilloscope plugin. 2012-12-05 02:03:58 +01:00
pcm_sampr.c
pcm_sw_volume.c Provide high resolution volume and prescaler to hosted targets. 2013-04-27 06:59:27 +02:00
powermgmt.c Add set_sleeptimer_duration function in minutes 2012-10-06 11:59:13 +02:00
profile.c
README
rolo.c Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
rom.lds
screendump.c lcd drivers: Convert lcd_[remote_]framebuffer to a pointer 2012-02-28 11:44:59 +11:00
scroll_engine.c Commit FS#12454 - Faster line scroll speed by Martin Sagmuller. 2012-01-09 03:26:03 +00:00
sdmmc.c
sound.c Add DAC's oversampling filter roll-off selection to sound settings. 2013-05-24 11:18:16 +04:00
SOURCES Move load_firmware() to separate file 2013-06-27 13:50:11 +02:00
storage.c Remove ata_removable() and ata_present() from multidriver code. 2012-01-25 20:08:51 +01:00
system.c
thread.c Use commit_dcache() instead of commit_discard_idcache() where possible 2012-02-04 22:27:42 -05:00
timer.c
tuner.c Add stub STFM1000 tuner driver 2012-05-19 16:10:52 +02:00
usb.c USB: Detect charging-only mode upon cable insert, not host detect. 2013-05-22 02:28:31 -04:00

See docs/README