summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
AgeCommit message (Collapse)Author
2007-04-11Moved SH1 system code to target tree. * First shot at hwcompat cleanup.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13114 a1c6a512-1295-4272-9138-f99709370657
2007-03-04Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - ↵Daniel Ankers
iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
2007-03-01Hook up .cue file detection via a callback klugde on HWCODEC, to make cue ↵Jens Arnold
sheet support actually work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12526 a1c6a512-1295-4272-9138-f99709370657
2007-02-18fix the player buildJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12381 a1c6a512-1295-4272-9138-f99709370657
2006-12-19Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis
the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
2006-11-06Archos recorders, Ondio FM: Set (unused) MAS SDO and S/PDIF out while ↵Jens Arnold
recording the same way as for playback (SDO disabled, S/PDIF enabled on recorder V1 only). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11456 a1c6a512-1295-4272-9138-f99709370657
2006-11-06Fixed the errors on the sims.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11454 a1c6a512-1295-4272-9138-f99709370657
2006-11-06Big Patch adds primarily: Samplerate and format selection to recording for ↵Michael Sevakis
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-10-19Patch #6052 - More responsive skip on ArchosLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11273 a1c6a512-1295-4272-9138-f99709370657
2006-10-19Patch #5166 by Robert Keevil - Last.fm loggingLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11269 a1c6a512-1295-4272-9138-f99709370657
2006-09-16New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen
switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
2006-08-28Added FS#2939 Encoder Codec Interface + Codecs by Antonius Hellmann with ↵Michael Sevakis
additional FM Recording support and my modifications git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10789 a1c6a512-1295-4272-9138-f99709370657
2006-04-30Recording buffer offset must be passed on to the firmware calls, not the ↵Peter D'Hoye
other way around. Should fix yellow builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9842 a1c6a512-1295-4272-9138-f99709370657
2006-03-03More 64bit simulator fixes, coinciding with the long policy this time.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8890 a1c6a512-1295-4272-9138-f99709370657
2005-12-22Simulator fixes: id3 string pointers can be null.Magnus Holmgren
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8282 a1c6a512-1295-4272-9138-f99709370657
2005-12-07several small fixes sugested by different people (FireFly, Lear, Takka)Marcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8184 a1c6a512-1295-4272-9138-f99709370657
2005-12-06waiting is over: initial unicode commitMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
2005-12-04Bugfix: Prevent spurious bitswap when switching from recording to playback. ↵Jens Arnold
This caused erratic voice UI behaviour under certain conditions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8148 a1c6a512-1295-4272-9138-f99709370657
2005-11-13removed set audio status method - will be using different approachAnton Oleynikov
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7844 a1c6a512-1295-4272-9138-f99709370657
2005-11-13new function to set audio status (to be used later)Anton Oleynikov
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7839 a1c6a512-1295-4272-9138-f99709370657
2005-11-12Removed monitor option from audio_set_recording_options and the global ↵Andy
setting rec_monitor. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7821 a1c6a512-1295-4272-9138-f99709370657
2005-11-12Fix for broken simulatorsAndy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7819 a1c6a512-1295-4272-9138-f99709370657
2005-11-12iRiver: Initial support for wav-recording in recording menu. Supports ↵Andy
mic/line-in (and radio), monitor mode, time-splitting (and byte-splitting), pause/resume etc. Things todo: Prerecording, peakmeter (should be simple), frequency other than 44.1 kHz, etc.. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7818 a1c6a512-1295-4272-9138-f99709370657
2005-11-08Removed tabsHardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7787 a1c6a512-1295-4272-9138-f99709370657
2005-11-08If no previous track found, check if we're really at the end of playback or ↵Hardeep Sidhu
if a new playlist is starting. Fixes problem with previous not working with move to next folder feature. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7786 a1c6a512-1295-4272-9138-f99709370657
2005-11-07Overlooked this one when changing sound_set() calls to the individual functions.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7778 a1c6a512-1295-4272-9138-f99709370657
2005-11-06Sound settings rework: * Put all fixed parameters (unit, decimals, step, ↵Jens Arnold
min, max, default, set function) for the individual settings into one structure array. * Use the new individual sound setting functions where appropriate. * Added dummy sound setting functions and defined the codec type for the sims. Fixes wrong sound settings ranges in the simulators. * Code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7770 a1c6a512-1295-4272-9138-f99709370657
2005-09-15Archos recording/playback: (1) Xing header creation: * Now estimates the ↵Jens Arnold
framecount from the recording time if the MAS frame counter saturates, so it always writes a valid Xing header. * Reverted my brainless short-xing-header change. This was only valid for layer 3. (2) Xing/VBRI header evaluation: Fixed possible overflow in bitrate calculation. (3) MPEG thread: Avoid double chunk size limiting for the rare case of 8 MB modded Ondios. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7522 a1c6a512-1295-4272-9138-f99709370657
2005-09-10Reworked handling of MPEG audio frame & file info: * Fixed frame size ↵Jens Arnold
calculation for layer 1 (all versions) and layer 2 (V2/V2.5). * Exact frame time (expressed as a fraction) for way more precise playtime calculation at 44100/22050/11025Hz sample frequency. * Exact playtime<->position conversion for CBR also used for resume position. * More compact code, long policy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7505 a1c6a512-1295-4272-9138-f99709370657
2005-09-05Archos recording: yield() within audio_beep() to avoid starving the mpeg ↵Jens Arnold
thread; recording beep should no longer disturb prerecording. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7475 a1c6a512-1295-4272-9138-f99709370657
2005-09-04Archos recording: Always prepend ID3V2 and Xing header to a recording file, ↵Jens Arnold
even with prerecording and file splitting. Adjusted Xing header creation to create smaller headers. Fixed missing break; in the mpeg thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7472 a1c6a512-1295-4272-9138-f99709370657
2005-09-02Adjusted the file size calculation when prerecordingLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7451 a1c6a512-1295-4272-9138-f99709370657
2005-08-30Archos: Even more NULL pointer accesses removedLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7433 a1c6a512-1295-4272-9138-f99709370657
2005-08-30Archos: Removed NULL pointer accesses when changing tracksLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7431 a1c6a512-1295-4272-9138-f99709370657
2005-08-29Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and ↵Jens Arnold
SWCODEC, respectively. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
2005-08-21Patch #1105616 by Ray Lambert - A-B Repeat for Archos studio/recorder, still ↵Linus Nielsen Feltzing
not 100% complete, but I wanted to commit it before the 2.5 feature freeze git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7380 a1c6a512-1295-4272-9138-f99709370657
2005-08-21Hooked up the runtime database on archos.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7376 a1c6a512-1295-4272-9138-f99709370657
2005-08-19More mpeg.c cleanup: collected variables and declarations at the top, more ↵Jens Arnold
#if/#ifdef fixup. Cut a bit of binary size by making debug_tags() an empty define for ordinary builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7359 a1c6a512-1295-4272-9138-f99709370657
2005-08-19Cleaned up remnants of early iriver development. First part of #if/#ifdef ↵Jens Arnold
cleanup,adjusted comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7355 a1c6a512-1295-4272-9138-f99709370657
2005-08-18Use the provided function to calculate the unsaved space in rec_tick().Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7344 a1c6a512-1295-4272-9138-f99709370657
2005-07-08Fixed skip bug at buffer refillHenrik Backe
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7064 a1c6a512-1295-4272-9138-f99709370657
2005-07-07Only update resume info when playing. Fixes resume when exiting ↵Hardeep Sidhu
recording/radio screens. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7056 a1c6a512-1295-4272-9138-f99709370657
2005-07-04Moved resume info updating to the mpeg/playback threads so that it's saved ↵Hardeep Sidhu
even when not in the WPS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7018 a1c6a512-1295-4272-9138-f99709370657
2005-07-01Don't update playlist when no tracks in memory. Fixes looping bug when ↵Hardeep Sidhu
repeat shuffle is enabled in a directory that contains only invalid tracks git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6964 a1c6a512-1295-4272-9138-f99709370657
2005-07-01Added new feature to move to next folder once the current one completes when ↵Hardeep Sidhu
playing directories git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6963 a1c6a512-1295-4272-9138-f99709370657
2005-06-25Added new shuffle repeat mode that reshuffles playlist before repeating. ↵Hardeep Sidhu
Also added new shuffled insert mode that randomly inserts selected track(s) somewhere between current track and end of playlist. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6861 a1c6a512-1295-4272-9138-f99709370657
2005-06-05First audio codec playback attempt by Miikka PekkarinenLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6574 a1c6a512-1295-4272-9138-f99709370657
2005-06-04Major recording rework: (1) Slight optimisation of the recording transfer. ↵Jens Arnold
(2) Rework of the recording event loop: (a) When starting a recording, wait a bit longer before grabbing a header, increasing the chance that we get a valid one. (b) Bugfix: Always flush the whole buffer when it gets above the watermark. (c) Save in chunks for lower latency (1MB on 8MB-modded boxes, and 256KB on Ondio). (d) Hierarchical scheme of reasons to save data: stop_recording beats new_file, and new_file beats buffer_full. (e) Saving is done in one location. Decreased code size. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6560 a1c6a512-1295-4272-9138-f99709370657
2005-05-28Avoid radio interference from the MAS internal clock on devices with the ↵Jens Arnold
Samsung tuner (FM recorder, old Ondio FM) by slightly shifting it away when necessary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6531 a1c6a512-1295-4272-9138-f99709370657
2005-05-27Some small fixes for playback: (1) Always fill up to the high watermark. (2) ↵Jens Arnold
A bit more robust id3v1 skipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6529 a1c6a512-1295-4272-9138-f99709370657