summaryrefslogtreecommitdiff
path: root/src/player.c
AgeCommit message (Collapse)AuthorFilesLines
2010-03-16Replace player return value magicLars-Dominik Braun1-5/+3
2010-03-16waitress: Replaced callback magic numbersLars-Dominik Braun1-13/+14
2010-03-12Removed PACKAGE from ui stringsLars-Dominik Braun1-5/+5
2010-01-30Fix libao error detectionLars-Dominik Braun1-1/+4
Under certain circumstances (fast station switching e.g.) a new playlist was not fetched, because the player thread returned 0x1 (== libao error) and the main thread NULLed curStation.
2010-01-21It's 2010 now.Lars-Dominik Braun1-1/+1
2009-12-19Fix printf format for size_tLars-Dominik Braun1-1/+1
2009-11-22Don't use int->float->int castsLars-Dominik Braun1-15/+15
2009-11-11Print message and stop playback when hitting libao errorLars-Dominik Braun1-5/+17
Thanks to jpfuentes2@github
2009-08-09Fix commit a195a94be7aa14d839c77275814a52d2ee6b8b6fLars-Dominik Braun1-0/+2
mp3 and mp3-hifi player functions are the same
2009-08-04Use "static" keyword for functionsLars-Dominik Braun1-7/+7
2009-07-14Forgot to remove #define in last commitLars-Dominik Braun1-3/+0
2009-07-11Fix hardcoded mp3 bitrateLars-Dominik Braun1-7/+6
Get bitrate from header of first decoded frame now.
2009-06-28Finally clean up curl garbageLars-Dominik Braun1-6/+5
I missed some #includes. Documentation had to be updated, too.
2009-05-22waitress: Add _RET_READ_ERR, retry on read error in playerLars-Dominik Braun1-2/+2
Enhances commit 279f3ba93b729684e54300352c59523bd05e54bc
2009-05-16Retry on temporary http failure (timeout e.g.)Lars-Dominik Braun1-1/+2
2009-05-03Fix range header, accept 206 status codeLars-Dominik Braun1-1/+1
2009-05-03Switch to libwaitressLars-Dominik Braun1-35/+23
2009-03-13mp3 playback prebufferingLars-Dominik Braun1-2/+11
2009-03-08Fix "pause" -- againLars-Dominik Braun1-50/+14
Don't parse Content-Length header, curl does this too; CURLE_RECV_ERROR is recoverable too
2009-03-04Ui improvementsLars-Dominik Braun1-5/+7
printf wrapper introduced, hopefully cleaned up ui
2009-03-01Even more documentationLars-Dominik Braun1-0/+11
...and small cleanups.
2009-02-07Fix mp3 time displayLars-Dominik Braun1-0/+6
2009-02-06Fix FPELars-Dominik Braun1-5/+8
Introduced in (last) commit a2aee035072a5d346c187a890539f72c6d5167a0. Don't divide by zero :)
2009-02-05Time display for mp3 playbackLars-Dominik Braun1-3/+61
Time is now counted in milliseconds, not aac frames. Calculations seem to be inaccurate sometimes (about +-2 seconds).
2009-02-04Buffer abstractionLars-Dominik Braun1-22/+25
Replace copy&waste by inline functions
2009-02-01mp3 playback supportLars-Dominik Braun1-33/+191
Now libfaad and/or libmad are used for playback. There's currently no remaining time displayed for mp3 playback.
2009-01-31Switch build system to cmakeLars-Dominik Braun1-1/+1
lib{piano,wardrobe} are now static libraries and not installed any more.
2009-01-31Remove orphan mutex_unlockLars-Dominik Braun1-2/+0
Forgot that in last commit...
2009-01-31Use pthread mutex to block player in pause stateLars-Dominik Braun1-9/+8
2009-01-20It's 2009 nowLars-Dominik Braun1-1/+2
Update copyright notices, add my email address, but don't change libwardrobe (I'm not maintaining it anymore)
2008-12-13Use curl's built-in range supportLars-Dominik Braun1-9/+4
2008-10-25Use own byteswap implementationLars-Dominik Braun1-3/+6
pianobar can be compiled on NetBSD (and maybe others) now.
2008-10-17Resume aborted song transferLars-Dominik Braun1-1/+19
This fixes those my-favorite-song-suddenly-aborted-"bugs", as well as the pause mode, which was more like a stop mode, because pandora *always* aborted the transfer after a few minutes.
2008-09-09Pause song fasterLars-Dominik Braun1-16/+16
2008-08-27Use bswap_32 in playerLars-Dominik Braun1-19/+5
2008-08-27AAC-Player fine tuningLars-Dominik Braun1-9/+8
Move variables definitions outside the loop, define buffer as short int, as replaygain works with ints, not bytes.
2008-08-26Silence curl's attribute warningsLars-Dominik Braun1-1/+1
2008-08-19Allow key shortcut configuration via config fileLars-Dominik Braun1-0/+2
Some code restructuring was made, too: - Move UI functions to ui.c and ui_act.c - Change default keys for loving and banning to + and -
2008-07-24Reduce cpu load produced by replaygainLars-Dominik Braun1-2/+4
It's not necessary to re-compute the scale factor as it will be the same every time.
2008-07-24Initial ReplayGain work (including anti-clipping)Lars-Dominik Braun1-0/+27
Could be tuned...
2008-06-28client: Use mode instead of finishedPlayback in playerLars-Dominik Braun1-12/+18
Smarter solution than commit 8421cfd9886ec5ee19cde18b48853c2f9ea60c29.
2008-06-27client: Fix wrong length calculationLars-Dominik Braun1-1/+2
2008-06-25client: Faster player thread abortLars-Dominik Braun1-1/+6
2008-06-23Set curl timeout to 60 seconds.Lars-Dominik Braun1-0/+1
2008-06-23client: Abort player thread while pause mode should be possibleLars-Dominik Braun1-2/+2
2008-06-23client: Use function prefix "Bar"Lars-Dominik Braun1-6/+6
2008-06-21client: Some cleanupLars-Dominik Braun1-3/+4
Now unneeded header, linebreaks
2008-06-21client: Read stsz atom containing frame sizesLars-Dominik Braun1-0/+239
This has two advantages: 1) We can pass the correct amount of bytes to NeAACDecDecode (). This should fix some decoding error messages. And 2) We can show the length of the song and the remaining (or already played time) to the user. Cool, eh?