aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2007-08-22syncsvn/q-mpdQball Cow1-46/+104
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6799 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20storedplaylist is now the last stored mtimeQball Cow1-14/+3
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6777 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20ok, this time correctQball Cow1-4/+5
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6776 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testing3Qball Cow3-11/+4
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6775 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testing3Qball Cow1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6774 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testingQball Cow1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6773 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testingQball Cow1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6772 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testingQball Cow1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6771 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testingQball Cow1-2/+10
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6770 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20just testingQball Cow1-2/+4
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6769 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-20Add 'lsplaylists' commandQball Cow1-2/+10
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6768 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19some fixedQball Cow1-5/+8
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6767 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19Custom patch to add a playlist versioning number, needs testing2Qball Cow1-1/+0
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6766 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19Custom patch to add a playlist versioning number, needs testingQball Cow3-1/+43
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6765 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19Add some commentsQball Cow1-0/+8
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6764 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19Adding the simple patch 1534Qball Cow1-1/+7
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6762 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19endian fixQball Cow1-1/+21
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6760 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19Add kodest wavpack streaming patchQball Cow3-36/+175
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6758 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-19Queue patchQball Cow5-1/+257
git-svn-id: https://svn.musicpd.org/mpd/branches/q-mpd@6757 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-12decode: close audio device after initial open if pausedJ. Alexander Treuman1-1/+5
Currently, if we start decoding while the pause flag is set, we open the audio device and leave it opened, blocking other apps from using it. The obvious thing to do is to not open the audio device if the pause flag is set, but the open call also sets the audio format. Therefore I'm leaving the open call in, and just closing it immediately afterwards if the pause flag is set. git-svn-id: https://svn.musicpd.org/mpd/trunk@6745 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-12decode: reformatting for better readabilityJ. Alexander Treuman1-6/+9
git-svn-id: https://svn.musicpd.org/mpd/trunk@6742 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-11audioOutputs/audioOutput_shout: adding timers backJ. Alexander Treuman1-27/+80
The shout plugin will now feign playback until the connect timeout is hit, preventing connection attempts from blocking playback on local outputs. Note that this patch is very different from remiss' original one. git-svn-id: https://svn.musicpd.org/mpd/trunk@6738 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-08-11Cleanup a outcommented debug statementQball Cow1-5/+0
git-svn-id: https://svn.musicpd.org/mpd/trunk@6736 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-07-16Extra debug outputQball Cow1-3/+16
git-svn-id: https://svn.musicpd.org/mpd/trunk@6689 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-29log: flush the warning log after redirecting stderr to the log filesJ. Alexander Treuman1-0/+1
Previously, the warning log was only flushed if creating the db or logging to stdout. This meant that under normal circumstances (no db creation, logging to files) the warning log was never flushed. This caused a bug when a warning was printed for each call to the status command where the warning buffer would grow endlessly, eventually using more and more CPU to reallocate it. git-svn-id: https://svn.musicpd.org/mpd/trunk@6660 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-25replayGain: adding DEBUG messages when computing scaleJ. Alexander Treuman1-0/+4
git-svn-id: https://svn.musicpd.org/mpd/trunk@6658 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-25inputPlugins/wavpack_plugin: enable ReplayGain codeJ. Alexander Treuman1-14/+3
Turns out the fix was as simple as specifying the OPEN_TAGS flag when opening the file. Thanks again to Kodest for figuring this one out. git-svn-id: https://svn.musicpd.org/mpd/trunk@6657 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-25inputPlugins/wavpack_plugin: adding dummy code for ReplayGain supportJ. Alexander Treuman1-4/+84
This ReplayGain code is currently disabled because WavpackGetTagItem can't seem to find replaygain_* fields in APEv2 tags (which is how wvgain stores ReplayGain values). Additionally, because APEv2 tags are stored at the end of the file, this code is only implemented for regular files and not HTTP streams. Using HTTP seeking it *may* be possible to implement it for both. git-svn-id: https://svn.musicpd.org/mpd/trunk@6656 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-25decode: prefer fileDecodeFunc over streamDecodeFunc for filesJ. Alexander Treuman1-9/+10
Only wavpack implements both fileDecodeFunc and streamDecodeFunc, and it's fileDecodeFunc provides more functionality. So try using that first. This commit also fixes a bug where the plugin test loop wouldn't break once a suitable plugin was found if it used fileDecodeFunc. git-svn-id: https://svn.musicpd.org/mpd/trunk@6655 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-25Updating Kodest's name/email.J. Alexander Treuman1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6654 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-24Adding WavPack support. Patch courtesy Kodest.J. Alexander Treuman4-1/+426
git-svn-id: https://svn.musicpd.org/mpd/trunk@6651 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-13Use parsePath for the fifo output's path parameter.J. Alexander Treuman1-9/+9
git-svn-id: https://svn.musicpd.org/mpd/trunk@6623 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-13Adding parsePath and making parseConfigFilePath use it.J. Alexander Treuman3-48/+65
git-svn-id: https://svn.musicpd.org/mpd/trunk@6622 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-13Adding FIFO audio output. This is pretty much identical to the old one,J. Alexander Treuman4-1/+303
except that it now uses a timer for throttling. git-svn-id: https://svn.musicpd.org/mpd/trunk@6621 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-12Use <= when comparing (current time - start time) to a timeout. This wayJ. Alexander Treuman1-2/+2
if the clock ticks right after we get the start time and the timeout is only one second, we'll still wait a full second instead of returning immediately. git-svn-id: https://svn.musicpd.org/mpd/trunk@6557 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-12Make the shout timeout configurable. The default is still 2 seconds.J. Alexander Treuman1-2/+13
git-svn-id: https://svn.musicpd.org/mpd/trunk@6556 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-12Redoing remiss's shout patch. This time, just block on open() instead ofJ. Alexander Treuman3-106/+30
pretending to play while we wait for the connection to timeout. This removes the need for timers, and thus removes the now unnecessary timer_get_runtime_* function(s) from the timer code. The changes made compared to the pre-patch shout plugin are: * Block while connecting, timing out after 2 seconds. * Close the device, and not just the connection, if play returns -1. * Remove sd->last_err (it's always assigned before use). * Some minor cleanups. git-svn-id: https://svn.musicpd.org/mpd/trunk@6555 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-12Load shout first instead of last. This makes it more likely to block otherJ. Alexander Treuman2-2/+2
outputs, which is actually desired behaviour. This way if the shout server takes a while to respond, the shout output can block until connected without messing up other audio outputs. git-svn-id: https://svn.musicpd.org/mpd/trunk@6554 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-10Load the shout plugin last. This will make sure it's played to last,J. Alexander Treuman2-2/+2
reducing the likelyhood of it blocking other outputs. git-svn-id: https://svn.musicpd.org/mpd/trunk@6543 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09If an audio output is in state DEVICE_ENABLE, and openAudioOutput fails,J. Alexander Treuman1-6/+10
leave it in that state. Likewise, if an audio output is in state DEVICE_ON, and reopening the device due to a format change fails, change it to state DEVICE_ENABLE. This will prevent flushAudioBuffer from even attempting to play audio on a closed device (even though it would fail anyway). git-svn-id: https://svn.musicpd.org/mpd/trunk@6529 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09Tidying up some code.J. Alexander Treuman1-17/+10
git-svn-id: https://svn.musicpd.org/mpd/trunk@6527 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09Remove a useless if (quit) block. It's enclosed in two while loops: theJ. Alexander Treuman1-4/+0
top depending on !quit, which doesn't set it anywhere before the if (quit) block is reached, and the inner one which doesn't set quit at all. Since it's a local variable and can't be modified externally, it'll never be hit. git-svn-id: https://svn.musicpd.org/mpd/trunk@6524 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09This should resolve some of the timing issues experienced after switching ↵Roger Bystrøm1-8/+76
from blocking to non-blocking shout api * Wait ten seconds before declearing the shout server unreachable * Fix a state where it would never attempt to connect if it had previously failed It isn't perfect yet, but I'd like some testing on it from other setups git-svn-id: https://svn.musicpd.org/mpd/trunk@6523 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09switching to us instead of ms on runtimeRoger Bystrøm2-3/+3
git-svn-id: https://svn.musicpd.org/mpd/trunk@6522 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09Added timer_get_runtime_ms to know how long the timer has been runningRoger Bystrøm2-1/+10
git-svn-id: https://svn.musicpd.org/mpd/trunk@6521 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09Use string concatenation instead of snprintf for the User-Agent HTTPJ. Alexander Treuman1-2/+1
header. git-svn-id: https://svn.musicpd.org/mpd/trunk@6520 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-09Tidying up some code.J. Alexander Treuman1-12/+14
git-svn-id: https://svn.musicpd.org/mpd/trunk@6519 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-08dmix fix, don't call snd_pcm_drain unless we're already in the RUNNINGWarren Dukes1-1/+3
state (when users press stop, previous snd_pcm_drop(), then snd_pcm_drain() was called. this would lockup dmix) git-svn-id: https://svn.musicpd.org/mpd/trunk@6517 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-07Send SIGCONT to the decode process before sending it SIGTERM.J. Alexander Treuman1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6503 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-04Set a flag if we've sent the player process SIGSTOP so that we know not toJ. Alexander Treuman3-3/+11
wait for it to complete an action which it never will. git-svn-id: https://svn.musicpd.org/mpd/trunk@6488 09075e82-0dd4-0310-85a5-a0d7c8717e4f