summaryrefslogtreecommitdiff
path: root/apps/playback.c (follow)
Commit message (Collapse)AuthorAge
...
* FS#6266 - flush PCM buffers if the user skips while paused. FixesFS#5747.Steve Bavin2007-07-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14090 a1c6a512-1295-4272-9138-f99709370657
* Fix problem where follow playlist picks the next track, not the current one ↵Steve Bavin2007-07-06
| | | | | | (FS#7244). Hopefully also fixes the wrong filename being displayed on the WPS (FS#7248). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13805 a1c6a512-1295-4272-9138-f99709370657
* Yet another fine scrobbling patch by Robert Keevil that fixes FS #5495: ↵Peter D'Hoye2007-06-24
| | | | | | audio_set_track_changed_event() skips first track in playlist git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13701 a1c6a512-1295-4272-9138-f99709370657
* A patch by Robert Keevil that's been in the tracker way to long, fixes FS ↵Peter D'Hoye2007-06-24
| | | | | | #6213: Audioscrobbler incorrectly submits last song git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13699 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7264 'Build with -Os switch for coldfire targets'.Nils Wallménius2007-06-13
| | | | | | | | | Introduces MEM_FUNCTION_WRAPPERS(api) macro which adds wrappers functions to a plugin to make plugins link correctly when gcc calls mem* functions directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13625 a1c6a512-1295-4272-9138-f99709370657
* Plugins that play sound must be sure to set inputs and outputs on audio ↵Michael Sevakis2007-06-10
| | | | | | muxed targets. Add strict adherence to the interface protocols. Make sure playback sets the playback output as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13604 a1c6a512-1295-4272-9138-f99709370657
* Straighten out some audio path APIs and misc. audio stuff. Having recording ↵Michael Sevakis2007-06-08
| | | | | | is not a prerequisite to having input/output source selection which is probably most useful when adding a audio input features like FM to a new port without forcing recording to be implemented first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13599 a1c6a512-1295-4272-9138-f99709370657
* Seeking and resume support for Monkey's AudioDave Chapman2007-06-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13597 a1c6a512-1295-4272-9138-f99709370657
* Add the possibility to store cuesheets in /.rockbox/cue. The code will look ↵Nicolas Pennequin2007-05-28
| | | | | | | | | for a cuesheet there in case there wasn't one in the same folder as the audio file. This is to reduce the clutter created by one cuesheet per audio file in some places. Also some duplicate code was replaced by a function call. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13508 a1c6a512-1295-4272-9138-f99709370657
* Remove unused function and unused headerNils Wallménius2007-05-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13424 a1c6a512-1295-4272-9138-f99709370657
* How'd I miss that I'd left LOGFQUEUES enabled in my pre-commit diff? :/Michael Sevakis2007-05-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13365 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC Playback: Put a stop to the resume deadlock however crudely. Clean ↵Michael Sevakis2007-05-09
| | | | | | some unused lines out that no longer compatible. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13364 a1c6a512-1295-4272-9138-f99709370657
* Fix errors. LOGFQUEUE should take formatting parameters now.Michael Sevakis2007-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13363 a1c6a512-1295-4272-9138-f99709370657
* Silly fix for a silly comment mistake.Michael Sevakis2007-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13362 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC Playback: Seriously mess with it and get rid of (at least some ;) ↵Michael Sevakis2007-05-08
| | | | | | race conditions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13361 a1c6a512-1295-4272-9138-f99709370657
* Playback: Ensure some state coherency. paused implies playing and pause ↵Michael Sevakis2007-05-08
| | | | | | actions are bypassed if not playing. stopped implies not playing and not paused. Starting playback transistions to playing and not paused. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13360 a1c6a512-1295-4272-9138-f99709370657
* Revert the addition of the steal_codec_stack function. Replace by accessing ↵Dave Chapman2007-05-07
| | | | | | the threads structure to grab the codec stack. Maybe a better solution exists. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13349 a1c6a512-1295-4272-9138-f99709370657
* Use a separate thread in test_codec, with the same (IRAM) stack as the main ↵Dave Chapman2007-05-07
| | | | | | codec thread. Add a function to the plugin API to steal the codec thread, which test_codec copies and then restores. Now libmad can be benchmarked. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13347 a1c6a512-1295-4272-9138-f99709370657
* Initial version of a test_codec plugin (viewer). This loads the audio file ↵Dave Chapman2007-05-07
| | | | | | into the audio buffer and decodes it as fast as it can via a locally implemented version of the codec API. Intended for use when optimising codecs - so isn't built by default. Remember to add it to both plugins/SOURCES and viewers.config to enable it. Currently the codec is run in the main thread which means mpa.codec doesn't work - it requires more stack than is available on the main thread. The solution will be to create a new thread in the plugin which steals the main codec thread's IRAM stack, but that's not done yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13345 a1c6a512-1295-4272-9138-f99709370657
* Audio seemed never to want to stop stopping. A bad condition for plugins ↵Michael Sevakis2007-05-03
| | | | | | that want to stop audio and begin pcm playback immediately. Only do the stop if the state is playing. Properly wait for it to be done as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13317 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: Fix a race condition caused by yielding in pcm_mute that could have ↵Michael Sevakis2007-04-12
| | | | | | playback messing around with pcm after supposedly being fully stopped. The pcm buffer mutes consistently on some players (the PP ones) which made audio_stop return too soon. Won't matter if it yields or not now and this should take care of the mpegplayer 'next video' issue. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13117 a1c6a512-1295-4272-9138-f99709370657
* Move iPod Video hardware equalizer init to audio_init() after the hardware ↵Dan Everton2007-04-11
| | | | | | is enabled. Should fix the issue where the hardware equalizer settings would not be reapplied after a restart. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13106 a1c6a512-1295-4272-9138-f99709370657
* Revert change 13001, since it causes the metadata to be re-read for ↵Magnus Holmgren2007-04-09
| | | | | | partially buffered files. This breaks ID3V2 parsing, which expects the mp3entry struct to be zeroed. A better fix for the old tag data problem is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13082 a1c6a512-1295-4272-9138-f99709370657
* Support resume for MusepackAdam Boot2007-04-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13049 a1c6a512-1295-4272-9138-f99709370657
* Fix occasional display of old tag data (normally from 32 tracks previous)Steve Bavin2007-04-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13001 a1c6a512-1295-4272-9138-f99709370657
* Don't update runtime info when stopping playback, except when playlist ends. ↵Miika Pekkarinen2007-03-31
| | | | | | Fixes wrong playcounts and autoscores being generated. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12976 a1c6a512-1295-4272-9138-f99709370657
* Make scheduler functions thread safe core wise. A big step towards playback ↵Miika Pekkarinen2007-03-26
| | | | | | running on COP (not yet possible because more protection on file system level is necessary). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12926 a1c6a512-1295-4272-9138-f99709370657
* fix bug where runtime data was not gathered for last track (end of playlist ↵Robert Kukla2007-03-25
| | | | | | or stop button). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12909 a1c6a512-1295-4272-9138-f99709370657
* FS#6864 - iriver H340 doesn't connect via USB - should be fixed. Registered ↵Michael Sevakis2007-03-20
| | | | | | the voice queue but didn't create the thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12859 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: Get rid of extra swap buffer and get back 512K of RAM or 100K if ↵Michael Sevakis2007-03-19
| | | | | | the players RAM is <= 1MB. Make any needed changes to things to stabilize and facilitate this including removing flattening out initialization. Comment some things heavily. Fix a few logfs I didn't want to see the compiler complaining about. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12843 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold2007-03-16
| | | | | | 500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC/Voice: Just one more adjustment and all should be good again.Michael Sevakis2007-03-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12749 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: Fix a problem with voice in the menus caused by my error using the ↵Michael Sevakis2007-03-13
| | | | | | wrong pointer when aligning the codec malloc buffer. Probably the reason for FS#6803. Oy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12747 a1c6a512-1295-4272-9138-f99709370657
* Audio Init: Just can't stand that heirarchy. Add one level of abstraction. ↵Michael Sevakis2007-03-11
| | | | | | Might come in handy anyhow. Use sound.h instead of the conditional includes for audio hardware headers. If someone doesn't like that, yell at my evil twin. :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12718 a1c6a512-1295-4272-9138-f99709370657
* Add another #ifdef PLAYBACK_VOICE where it should be.Michael Sevakis2007-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12715 a1c6a512-1295-4272-9138-f99709370657
* Reenable aynchronous audio init stage. Really just single stage with ↵Michael Sevakis2007-03-11
| | | | | | aynchronous enabling of outputs. Keeps audio_init last so prior init steps can use the audiobuffer in any desired way. Audio will be fully initialized by the time the UI is entered. Playback of voice or audio will be delayed properly until audio hardware is ready. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12714 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: Keep codec malloc buffer line aligned. Not doing so had vorbis ↵Michael Sevakis2007-03-11
| | | | | | running with unpredicable performance. Having a voice file present messed up the alignment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12712 a1c6a512-1295-4272-9138-f99709370657
* I really want the rest initialized to prevent accidents like the last.Michael Sevakis2007-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12696 a1c6a512-1295-4272-9138-f99709370657
* Throw in the explicit global inits that were supposed to be there too. ↵Michael Sevakis2007-03-09
| | | | | | Important for current_fd to be -1 at init. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12695 a1c6a512-1295-4272-9138-f99709370657
* Guess there were more changes to it.:) Odd that mine built until a make clean.Michael Sevakis2007-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12694 a1c6a512-1295-4272-9138-f99709370657
* Install the single stage synchronous audio initialization I cooked up awhile ↵Michael Sevakis2007-03-09
| | | | | | back. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12693 a1c6a512-1295-4272-9138-f99709370657
* Bring up the M5 port to a working stage: Extended numerous explicit checks ↵Jens Arnold2007-03-05
| | | | | | for IAUDIO_X5 to also check for IAUDIO_M5, moved code around the target tree, added preliminary background for the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12610 a1c6a512-1295-4272-9138-f99709370657
* Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - ↵Daniel Ankers2007-03-04
| | | | | | 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
* don't restart the whole wps to essentially update the display of runtime ↵Robert Kukla2007-03-04
| | | | | | info, but make the concerned tags dynamic. Now scrolling is not restarted at end of buffering. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12592 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC Recording Codecs: Fix problems with hanging recording screen ↵Michael Sevakis2007-03-04
| | | | | | (chiefly on x5) when no voice file present and source is not FMRadio. Caused by extra audio stops causing encoder to unload prematurely. Fix is to have separate stop flags for each codec type to prevent collisions. Also now safe to plug into USB when recording and encoder will stay loaded and not be stopped by the call to audio_stop_playback. Additional discovery: playback will not be able to restart after a USB plug during recording. Probably an old bug. I recommend in the future that recording have higher priority on system resources than playback and playback be denied access explicitly if recording requires them. Codec API becomes incompatible so do full updates. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12579 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: Dsp speed optimizations. Changes for more modularity. Removal of ↵Michael Sevakis2007-02-24
| | | | | | some usless stuff. Some assembly routines for Coldfire with speed in mind over size for the outputs but the channel modes remain compact. Miscellaneous coldfire asm updates to accomodate the changes. Codec API structure version has to increase so do a full update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12472 a1c6a512-1295-4272-9138-f99709370657
* really fix red builds this timeJonathan Gordon2007-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12380 a1c6a512-1295-4272-9138-f99709370657
* SWCODEC: Remove the last quirks when upsampling.Michael Sevakis2007-02-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12336 a1c6a512-1295-4272-9138-f99709370657
* Fix a bug where the CPU stays boosted when the voice is activatedLinus Nielsen Feltzing2007-02-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12314 a1c6a512-1295-4272-9138-f99709370657
* Cuesheet support by Jonathan Gordon and me (FS #6460).Nicolas Pennequin2007-02-14
| | | | | | | | Everytime an audio file is loaded, a cue file with the same name is searched for. A setting allows to disable this (default is off). Cuesheet files can also be viewed in the file browser. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12304 a1c6a512-1295-4272-9138-f99709370657