summaryrefslogtreecommitdiff
path: root/apps/playback.c
AgeCommit message (Collapse)Author
2006-05-25Replace "#if (ROCKBOX_HAS_LOGF == 1)" with "#ifdef ROCKBOX_HAS_LOGF" - this ↵Dave Chapman
is consistent with the rest of Rockbox and Mark Arigo reported that it caused an error in his gcc when trying to compile a logf-enabled sim git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9991 a1c6a512-1295-4272-9138-f99709370657
2006-05-15Reset playlist_end when automatically skipping. Fixes B#5319.Hardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9929 a1c6a512-1295-4272-9138-f99709370657
2006-05-15Reset id3 info in all cases where we need to rebuffer tracksHardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9928 a1c6a512-1295-4272-9138-f99709370657
2006-05-09Reset id3 info when skipping directories. Fixes B#5323.Hardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9892 a1c6a512-1295-4272-9138-f99709370657
2006-05-03Don't initiate track change if at end of playlistHardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9868 a1c6a512-1295-4272-9138-f99709370657
2006-05-03Only reset resume settings when we're really at the end of the playlistHardeep Sidhu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9867 a1c6a512-1295-4272-9138-f99709370657
2006-05-02Stop playing current track before starting a new playlist with an offset ↵Hardeep Sidhu
(eg. bookmarks). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9861 a1c6a512-1295-4272-9138-f99709370657
2006-05-01Properly set audio_is_initialized flag for swcodec devices ad use it when ↵Hardeep Sidhu
initializing crossfade. This should fix the problems with resuming playback at startup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9853 a1c6a512-1295-4272-9138-f99709370657
2006-04-30Fix one seeking bug: when seeking back to before a resume point, audio from ↵Magnus Holmgren
another track could be played. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9837 a1c6a512-1295-4272-9138-f99709370657
2006-04-26Don't magically skip tracks without user interractionBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9813 a1c6a512-1295-4272-9138-f99709370657
2006-04-26This seems to fix a few bugs in thatBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9811 a1c6a512-1295-4272-9138-f99709370657
2006-04-26This seems to make selecting a new track from the file browser work very ↵Brandon Low
close to right. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9810 a1c6a512-1295-4272-9138-f99709370657
2006-04-25Switch inserts back from do while to while loops, because mpc likes to ↵Brandon Low
insert zero byte chunks at the end of files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9802 a1c6a512-1295-4272-9138-f99709370657
2006-04-24Fix the most likely cause of ipod nano startup race, and also seems to fix ↵Brandon Low
crossfade buffer reinitialization during playback for me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9790 a1c6a512-1295-4272-9138-f99709370657
2006-04-24Make track info update in a smarter wayBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9782 a1c6a512-1295-4272-9138-f99709370657
2006-04-23Fix some todos, and prevent the position from jumping around badly on seekBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9781 a1c6a512-1295-4272-9138-f99709370657
2006-04-23Improve stop behaviorBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9779 a1c6a512-1295-4272-9138-f99709370657
2006-04-23Fix a warning, and prepare for handling end-of-track seekingBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9778 a1c6a512-1295-4272-9138-f99709370657
2006-04-23Should fix some track ending early problemsBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9777 a1c6a512-1295-4272-9138-f99709370657
2006-04-23Make some adjustments to when the WPS will be updated, giving faster next ↵Brandon Low
track and cleaner track change updates git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9776 a1c6a512-1295-4272-9138-f99709370657
2006-04-22Remove an unneeded define, add a todoBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9765 a1c6a512-1295-4272-9138-f99709370657
2006-04-22Fix warningBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9760 a1c6a512-1295-4272-9138-f99709370657
2006-04-22First commit of reworking voice to be mroe stable on swcodecBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9758 a1c6a512-1295-4272-9138-f99709370657
2006-04-20Set playing to true immediately when audio_play() is called. Fixes a bug ↵Hardeep Sidhu
when selecting tracks from playlist viewer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9737 a1c6a512-1295-4272-9138-f99709370657
2006-04-19Have the codec thread stop the pcm if we need to spin up the diskBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9727 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Fix playback if the user does a very fast seek->skip pressBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9726 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Fix end of playlist handling. I think.Brandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9725 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Revert previous, it is brokenBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9724 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Make seeking synchronous. It's better this wayBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9722 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Fix dir skipping with new playback arch. Enable dir skipping on ipod with a ↵Brandon Low
couple of difficult combos (select|right/left) or short-long left / short-long right. The latter causes stuck in pause sometimes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9720 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Should fix a bug with track skipping backwards following track skip forward, ↵Brandon Low
play, seek backward git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9718 a1c6a512-1295-4272-9138-f99709370657
2006-04-18Save empty resume information if the playlist has endedBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9717 a1c6a512-1295-4272-9138-f99709370657
2006-04-17Reduce code size when logf is off. Add a todo. Undo a previous fix that ↵Brandon Low
broke crossfade on manual track changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9708 a1c6a512-1295-4272-9138-f99709370657
2006-04-17Misc. minor fixes: Guarantee aligned buffer. Enable load-codec-from-disk if ↵Brandon Low
a new track requires a different codec than the playing track, but does not already have it on the buffer. Stop playback immediately on a manual track skip. Handle seeking a distance greater than the size of the audio buffer. Enforce the 'no malloc for voice codec'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9704 a1c6a512-1295-4272-9138-f99709370657
2006-04-15Remove an unneeded WPS update signal. Make the codec thread more polite ↵Brandon Low
about requesting buffering. Prevent more Codec failure pops when the codec was _asked_ to stop. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9674 a1c6a512-1295-4272-9138-f99709370657
2006-04-15Put new_track on the codec_api, and use it instead of the reload_codec ↵Brandon Low
variable in most places. Should help with problems people have had with GUI vs. playback sync. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9670 a1c6a512-1295-4272-9138-f99709370657
2006-04-14This might fix the buffering problem. Didn't happen to me the way I usually ↵Brandon Low
reproduce it just now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9668 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Still not brightBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9666 a1c6a512-1295-4272-9138-f99709370657
2006-04-14I am dumbBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9665 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Work around the bug with buffer wrapping. Serious performance penalty, and ↵Brandon Low
a lot of buffering is discarded to achieve this, but it doesn't crash while I find the real cause git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9664 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Fix some unlikely buffer problems. Doesn't fix any reported bugs, but fixes ↵Brandon Low
some possible ones. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9663 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Fix some stop/pause/boost stuffBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9662 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Fix a lack of return on error for check_new_track (rare condition)Brandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9661 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Fix the queue implementationBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9660 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Change to using a queue to synchronize between threads instead of abusing a ↵Brandon Low
mutex git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9659 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Fix one cause of buffer-offness, but I'm pretty sure this is not the cause ↵Brandon Low
of problems that people are having as the debug code I put in detects and corrects it. Make taginfo instead of stupid filename appear on manual track skip, off buffer (stupid bug). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9658 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Tweak id3v1 tag stripping, better code, same functionality. Ensure correct ↵Brandon Low
buf_idx on track when rebuffer&seek. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9653 a1c6a512-1295-4272-9138-f99709370657
2006-04-14Change when the new_track variable is reset to fix the track display during ↵Brandon Low
skipping git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9652 a1c6a512-1295-4272-9138-f99709370657
2006-04-13Boost during the track transition, trust me, it makes sense. Better logging ↵Brandon Low
of buffer-not-synched issues. Revert a previous change to make a function take a parameter intead of using cur_ti. Add some todos. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9651 a1c6a512-1295-4272-9138-f99709370657
2006-04-13Adjust filesize if id3v1 is strippedBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9648 a1c6a512-1295-4272-9138-f99709370657