summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c (follow)
Commit message (Collapse)AuthorAge
* More 64bit simulator fixes, coinciding with the long policy this time.Jens Arnold2006-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8890 a1c6a512-1295-4272-9138-f99709370657
* Simulator fixes: id3 string pointers can be null.Magnus Holmgren2005-12-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8282 a1c6a512-1295-4272-9138-f99709370657
* several small fixes sugested by different people (FireFly, Lear, Takka)Marcoen Hirschberg2005-12-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8184 a1c6a512-1295-4272-9138-f99709370657
* waiting is over: initial unicode commitMarcoen Hirschberg2005-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
* Bugfix: Prevent spurious bitswap when switching from recording to playback. ↵Jens Arnold2005-12-04
| | | | | | This caused erratic voice UI behaviour under certain conditions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8148 a1c6a512-1295-4272-9138-f99709370657
* removed set audio status method - will be using different approachAnton Oleynikov2005-11-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7844 a1c6a512-1295-4272-9138-f99709370657
* new function to set audio status (to be used later)Anton Oleynikov2005-11-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7839 a1c6a512-1295-4272-9138-f99709370657
* Removed monitor option from audio_set_recording_options and the global ↵Andy2005-11-12
| | | | | | setting rec_monitor. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7821 a1c6a512-1295-4272-9138-f99709370657
* Fix for broken simulatorsAndy2005-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7819 a1c6a512-1295-4272-9138-f99709370657
* iRiver: Initial support for wav-recording in recording menu. Supports ↵Andy2005-11-12
| | | | | | 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
* Removed tabsHardeep Sidhu2005-11-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7787 a1c6a512-1295-4272-9138-f99709370657
* If no previous track found, check if we're really at the end of playback or ↵Hardeep Sidhu2005-11-08
| | | | | | 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
* Overlooked this one when changing sound_set() calls to the individual functions.Jens Arnold2005-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7778 a1c6a512-1295-4272-9138-f99709370657
* Sound settings rework: * Put all fixed parameters (unit, decimals, step, ↵Jens Arnold2005-11-06
| | | | | | 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
* Archos recording/playback: (1) Xing header creation: * Now estimates the ↵Jens Arnold2005-09-15
| | | | | | 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
* Reworked handling of MPEG audio frame & file info: * Fixed frame size ↵Jens Arnold2005-09-10
| | | | | | 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
* Archos recording: yield() within audio_beep() to avoid starving the mpeg ↵Jens Arnold2005-09-05
| | | | | | thread; recording beep should no longer disturb prerecording. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7475 a1c6a512-1295-4272-9138-f99709370657
* Archos recording: Always prepend ID3V2 and Xing header to a recording file, ↵Jens Arnold2005-09-04
| | | | | | 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
* Adjusted the file size calculation when prerecordingLinus Nielsen Feltzing2005-09-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7451 a1c6a512-1295-4272-9138-f99709370657
* Archos: Even more NULL pointer accesses removedLinus Nielsen Feltzing2005-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7433 a1c6a512-1295-4272-9138-f99709370657
* Archos: Removed NULL pointer accesses when changing tracksLinus Nielsen Feltzing2005-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7431 a1c6a512-1295-4272-9138-f99709370657
* Renamed CONFIG_HWCODEC and MASNONE to the more appropriate CONFIG_CODEC and ↵Jens Arnold2005-08-29
| | | | | | SWCODEC, respectively. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7416 a1c6a512-1295-4272-9138-f99709370657
* Patch #1105616 by Ray Lambert - A-B Repeat for Archos studio/recorder, still ↵Linus Nielsen Feltzing2005-08-21
| | | | | | 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
* Hooked up the runtime database on archos.Jens Arnold2005-08-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7376 a1c6a512-1295-4272-9138-f99709370657
* More mpeg.c cleanup: collected variables and declarations at the top, more ↵Jens Arnold2005-08-19
| | | | | | #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
* Cleaned up remnants of early iriver development. First part of #if/#ifdef ↵Jens Arnold2005-08-19
| | | | | | cleanup,adjusted comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7355 a1c6a512-1295-4272-9138-f99709370657
* Use the provided function to calculate the unsaved space in rec_tick().Jens Arnold2005-08-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7344 a1c6a512-1295-4272-9138-f99709370657
* Fixed skip bug at buffer refillHenrik Backe2005-07-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7064 a1c6a512-1295-4272-9138-f99709370657
* Only update resume info when playing. Fixes resume when exiting ↵Hardeep Sidhu2005-07-07
| | | | | | recording/radio screens. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7056 a1c6a512-1295-4272-9138-f99709370657
* Moved resume info updating to the mpeg/playback threads so that it's saved ↵Hardeep Sidhu2005-07-04
| | | | | | even when not in the WPS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7018 a1c6a512-1295-4272-9138-f99709370657
* Don't update playlist when no tracks in memory. Fixes looping bug when ↵Hardeep Sidhu2005-07-01
| | | | | | 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
* Added new feature to move to next folder once the current one completes when ↵Hardeep Sidhu2005-07-01
| | | | | | playing directories git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6963 a1c6a512-1295-4272-9138-f99709370657
* Added new shuffle repeat mode that reshuffles playlist before repeating. ↵Hardeep Sidhu2005-06-25
| | | | | | 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
* First audio codec playback attempt by Miikka PekkarinenLinus Nielsen Feltzing2005-06-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6574 a1c6a512-1295-4272-9138-f99709370657
* Major recording rework: (1) Slight optimisation of the recording transfer. ↵Jens Arnold2005-06-04
| | | | | | (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
* Avoid radio interference from the MAS internal clock on devices with the ↵Jens Arnold2005-05-28
| | | | | | 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
* Some small fixes for playback: (1) Always fill up to the high watermark. (2) ↵Jens Arnold2005-05-27
| | | | | | A bit more robust id3v1 skipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6529 a1c6a512-1295-4272-9138-f99709370657
* Archos recorders: New recording data transfer routine. Not asm optimised ↵Jens Arnold2005-05-23
| | | | | | this time, but it should lower the possibility of broken recordings a little. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6511 a1c6a512-1295-4272-9138-f99709370657
* Removed unused variable.Jens Arnold2005-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6445 a1c6a512-1295-4272-9138-f99709370657
* Disabled unused constants.Jens Arnold2005-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6431 a1c6a512-1295-4272-9138-f99709370657
* More dead code...Jens Arnold2005-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6430 a1c6a512-1295-4272-9138-f99709370657
* First step towards separating the metadata handling from the mpeg thread codeLinus Nielsen Feltzing2005-04-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6262 a1c6a512-1295-4272-9138-f99709370657
* mp3buf renamed to audiobufLinus Nielsen Feltzing2005-04-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6252 a1c6a512-1295-4272-9138-f99709370657
* More audio code restructuring, mostly renaming functions so farLinus Nielsen Feltzing2005-04-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6246 a1c6a512-1295-4272-9138-f99709370657
* Moved the mpeg_sound_xxx() functions to sound.c and renamed them to sound_xxx()Linus Nielsen Feltzing2005-04-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6240 a1c6a512-1295-4272-9138-f99709370657
* Killed a warning on iRiver buildsLinus Nielsen Feltzing2005-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6079 a1c6a512-1295-4272-9138-f99709370657
* Build cleanup and general fixes. fprintf() is now fdprintf(), the separationDaniel Stenberg2005-02-22
| | | | | | | between uisimulator files and firmware/apps files are better done. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
* Unified build system to use SOURCES for sim builds too, a single Makefile-lookDaniel Stenberg2005-02-18
| | | | | | | | made by configure and various related adjustments. This has not yet been tested on cygwin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6001 a1c6a512-1295-4272-9138-f99709370657
* iRiver: Fixed bad handling of SYS_USB_CONNECTED (again)Linus Nielsen Feltzing2005-02-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5925 a1c6a512-1295-4272-9138-f99709370657
* long policyJean-Philippe Bernardy2005-02-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5914 a1c6a512-1295-4272-9138-f99709370657