summaryrefslogtreecommitdiff
path: root/apps/playback.c (follow)
Commit message (Collapse)AuthorAge
...
* Fix one seeking bug: when seeking back to before a resume point, audio from ↵Magnus Holmgren2006-04-30
| | | | | | another track could be played. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9837 a1c6a512-1295-4272-9138-f99709370657
* Don't magically skip tracks without user interractionBrandon Low2006-04-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9813 a1c6a512-1295-4272-9138-f99709370657
* This seems to fix a few bugs in thatBrandon Low2006-04-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9811 a1c6a512-1295-4272-9138-f99709370657
* This seems to make selecting a new track from the file browser work very ↵Brandon Low2006-04-26
| | | | | | close to right. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9810 a1c6a512-1295-4272-9138-f99709370657
* Switch inserts back from do while to while loops, because mpc likes to ↵Brandon Low2006-04-25
| | | | | | insert zero byte chunks at the end of files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9802 a1c6a512-1295-4272-9138-f99709370657
* Fix the most likely cause of ipod nano startup race, and also seems to fix ↵Brandon Low2006-04-24
| | | | | | crossfade buffer reinitialization during playback for me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9790 a1c6a512-1295-4272-9138-f99709370657
* Make track info update in a smarter wayBrandon Low2006-04-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9782 a1c6a512-1295-4272-9138-f99709370657
* Fix some todos, and prevent the position from jumping around badly on seekBrandon Low2006-04-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9781 a1c6a512-1295-4272-9138-f99709370657
* Improve stop behaviorBrandon Low2006-04-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9779 a1c6a512-1295-4272-9138-f99709370657
* Fix a warning, and prepare for handling end-of-track seekingBrandon Low2006-04-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9778 a1c6a512-1295-4272-9138-f99709370657
* Should fix some track ending early problemsBrandon Low2006-04-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9777 a1c6a512-1295-4272-9138-f99709370657
* Make some adjustments to when the WPS will be updated, giving faster next ↵Brandon Low2006-04-23
| | | | | | track and cleaner track change updates git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9776 a1c6a512-1295-4272-9138-f99709370657
* Remove an unneeded define, add a todoBrandon Low2006-04-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9765 a1c6a512-1295-4272-9138-f99709370657
* Fix warningBrandon Low2006-04-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9760 a1c6a512-1295-4272-9138-f99709370657
* First commit of reworking voice to be mroe stable on swcodecBrandon Low2006-04-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9758 a1c6a512-1295-4272-9138-f99709370657
* Set playing to true immediately when audio_play() is called. Fixes a bug ↵Hardeep Sidhu2006-04-20
| | | | | | when selecting tracks from playlist viewer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9737 a1c6a512-1295-4272-9138-f99709370657
* Have the codec thread stop the pcm if we need to spin up the diskBrandon Low2006-04-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9727 a1c6a512-1295-4272-9138-f99709370657
* Fix playback if the user does a very fast seek->skip pressBrandon Low2006-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9726 a1c6a512-1295-4272-9138-f99709370657
* Fix end of playlist handling. I think.Brandon Low2006-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9725 a1c6a512-1295-4272-9138-f99709370657
* Revert previous, it is brokenBrandon Low2006-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9724 a1c6a512-1295-4272-9138-f99709370657
* Make seeking synchronous. It's better this wayBrandon Low2006-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9722 a1c6a512-1295-4272-9138-f99709370657
* Fix dir skipping with new playback arch. Enable dir skipping on ipod with a ↵Brandon Low2006-04-18
| | | | | | 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
* Should fix a bug with track skipping backwards following track skip forward, ↵Brandon Low2006-04-18
| | | | | | play, seek backward git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9718 a1c6a512-1295-4272-9138-f99709370657
* Save empty resume information if the playlist has endedBrandon Low2006-04-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9717 a1c6a512-1295-4272-9138-f99709370657
* Reduce code size when logf is off. Add a todo. Undo a previous fix that ↵Brandon Low2006-04-17
| | | | | | broke crossfade on manual track changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9708 a1c6a512-1295-4272-9138-f99709370657
* Misc. minor fixes: Guarantee aligned buffer. Enable load-codec-from-disk if ↵Brandon Low2006-04-17
| | | | | | 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
* Remove an unneeded WPS update signal. Make the codec thread more polite ↵Brandon Low2006-04-15
| | | | | | 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
* Put new_track on the codec_api, and use it instead of the reload_codec ↵Brandon Low2006-04-15
| | | | | | 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
* This might fix the buffering problem. Didn't happen to me the way I usually ↵Brandon Low2006-04-14
| | | | | | reproduce it just now git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9668 a1c6a512-1295-4272-9138-f99709370657
* Still not brightBrandon Low2006-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9666 a1c6a512-1295-4272-9138-f99709370657
* I am dumbBrandon Low2006-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9665 a1c6a512-1295-4272-9138-f99709370657
* Work around the bug with buffer wrapping. Serious performance penalty, and ↵Brandon Low2006-04-14
| | | | | | 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
* Fix some unlikely buffer problems. Doesn't fix any reported bugs, but fixes ↵Brandon Low2006-04-14
| | | | | | some possible ones. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9663 a1c6a512-1295-4272-9138-f99709370657
* Fix some stop/pause/boost stuffBrandon Low2006-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9662 a1c6a512-1295-4272-9138-f99709370657
* Fix a lack of return on error for check_new_track (rare condition)Brandon Low2006-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9661 a1c6a512-1295-4272-9138-f99709370657
* Fix the queue implementationBrandon Low2006-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9660 a1c6a512-1295-4272-9138-f99709370657
* Change to using a queue to synchronize between threads instead of abusing a ↵Brandon Low2006-04-14
| | | | | | mutex git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9659 a1c6a512-1295-4272-9138-f99709370657
* Fix one cause of buffer-offness, but I'm pretty sure this is not the cause ↵Brandon Low2006-04-14
| | | | | | 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
* Tweak id3v1 tag stripping, better code, same functionality. Ensure correct ↵Brandon Low2006-04-14
| | | | | | buf_idx on track when rebuffer&seek. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9653 a1c6a512-1295-4272-9138-f99709370657
* Change when the new_track variable is reset to fix the track display during ↵Brandon Low2006-04-14
| | | | | | skipping git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9652 a1c6a512-1295-4272-9138-f99709370657
* Boost during the track transition, trust me, it makes sense. Better logging ↵Brandon Low2006-04-13
| | | | | | 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
* Adjust filesize if id3v1 is strippedBrandon Low2006-04-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9648 a1c6a512-1295-4272-9138-f99709370657
* Ensure that the buffer doesn't get out of sync on rebuffer track changes. ↵Brandon Low2006-04-13
| | | | | | Remove the concept of pcmuf_boost_mode as it doesn't seem necessary, and adds an unnecessary way for the CPU to stay boosted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9646 a1c6a512-1295-4272-9138-f99709370657
* Add a logf, remove an unused parameter, and an unused member of the ↵Brandon Low2006-04-13
| | | | | | track_info struct, ensure that we unboos on stop even if buffering, make a function take a parameter instead of using a global git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9644 a1c6a512-1295-4272-9138-f99709370657
* Track skipping rework more. This seems to handle rapid skipping very ↵Brandon Low2006-04-13
| | | | | | gracefully without compromising buffer safety. There may still be a potentially broken code path if the user does a very rapid skip, stop sequence, and I will be sure to investigate this. Due to Slasheri's concern, reimplement rapid GUI update for track skipping in a safe way. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9643 a1c6a512-1295-4272-9138-f99709370657
* Simplify audio startup, and remove some unnecessary codeBrandon Low2006-04-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9640 a1c6a512-1295-4272-9138-f99709370657
* Track changes should zero the seek_time to prevent undesired seeking in the ↵Brandon Low2006-04-12
| | | | | | new track git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9636 a1c6a512-1295-4272-9138-f99709370657
* use the cur_ti pointer, as it's always synched up with track_ridx any wayBrandon Low2006-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9635 a1c6a512-1295-4272-9138-f99709370657
* Get the GUI and audio in sync for track changesBrandon Low2006-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9634 a1c6a512-1295-4272-9138-f99709370657
* Fix major rebuffer stupidity, remove a redundant call, and a wrong comment.Brandon Low2006-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9633 a1c6a512-1295-4272-9138-f99709370657