Commit Graph

  • 5e085751f5 A better way to do the last patch (extremely minor patch) Avuton Olrich 2007-11-21 14:02:03 +00:00
  • 6f11941e5e Fix Sun C 5.9 / C99 compatiblity Avuton Olrich 2007-11-21 13:43:37 +00:00
  • 6050541d97 When parsing id3_frames take in account that there are different frames and with different field types. This fixes comments for id3v1 and id3v2 Qball Cow 2007-11-21 12:15:00 +00:00
  • b8dfe42342 Disable seeking on streams, because of bug 1611. When playing ogg, the decoder seeks through the file then starts to play. This does not mix well with streams from websites. Stopping playback of an oggstream that is trying to stream will result in mpd hanging. Qball Cow 2007-11-18 19:15:10 +00:00
  • b11fe8e934 Use POSIX compatible tr arguments in autogen.sh Avuton Olrich 2007-11-16 04:05:53 +00:00
  • ec49c1d3d9 Fix wavpack endian issues, tested to work for 16bit. (after blowing my ears off with white noise) Qball Cow 2007-10-03 16:11:01 +00:00
  • cb9d1b3d27 Playlist queue patch (http://musicpd.org/mantis/view.php?id=1478) version 11. Qball Cow 2007-09-26 08:25:35 +00:00
  • 3a03b89b48 inputPlugins/_ogg_common.c: fixup includes for new (1.1.4+ FLAC) Eric Wong 2007-09-17 11:30:37 +00:00
  • 1337f33c62 Add oga extension for flac-1.2.1 Avuton Olrich 2007-09-14 22:15:38 +00:00
  • 34f3abd357 conf.c: remove extra semi-colon here, too Eric Wong 2007-09-10 07:15:58 +00:00
  • 8b141ae54e buffer input while waiting for outputBuffer space in mp4 and (ogg)flac Eric Wong 2007-09-10 07:12:42 +00:00
  • 54339dfbc2 pcm_utils: gcc 2.95 compile fix (extra semi-colon) Eric Wong 2007-09-10 07:12:37 +00:00
  • 38de8d0808 playerInit() is static Eric Wong 2007-09-08 03:29:13 +00:00
  • 30ed6bcf22 inputStream_http: signal the server to close after all requests Eric Wong 2007-09-08 01:06:29 +00:00
  • 251216a552 decode: fix seek when paused Eric Wong 2007-09-07 01:17:09 +00:00
  • 45c9989849 get rid of unused DECODE_SUFFIX_* #defines Eric Wong 2007-09-07 00:59:29 +00:00
  • 56274fd016 Once again get rid of busy waiting and use SIGSTOP for pause Eric Wong 2007-09-06 01:07:49 +00:00
  • 7024700cc5 return to busy-waiting on pause for now.. Eric Wong 2007-09-06 00:45:34 +00:00
  • fe584bb11c send SIGCONT to the player process whenever we need to busy wait on it Eric Wong 2007-09-06 00:19:33 +00:00
  • b2ae8da509 conf: use getBoolBlockParam for block params, too Eric Wong 2007-09-05 23:59:36 +00:00
  • 4a2122eaf4 conf: improved boolean config parameter handling from -ke Eric Wong 2007-09-05 23:59:33 +00:00
  • ac58dce7df Redirect stdin *before* we establish a listen socket Eric Wong 2007-09-05 01:19:37 +00:00
  • 7992ff37d0 log: oops, fix a syntax error Eric Wong 2007-09-04 21:08:35 +00:00
  • 146485d0cb log: better bug avoidance for libraries incorrectly handling fd=0 Eric Wong 2007-09-04 19:45:24 +00:00
  • 203a5ed26d zeroconf: avoid passing NULLs to Avahi *_free() routines Eric Wong 2007-09-02 02:18:09 +00:00
  • bbe8b0efd8 Fix endless loop when mpd is launched from a non-interactive shell. Eric Wong 2007-09-02 01:11:28 +00:00
  • c2e742106f interface: fix IPV6 hostname buffer deallocation from automatics Eric Wong 2007-09-01 12:20:49 +00:00
  • c5c8548ba2 inputPlugins/flac: improve error messages Eric Wong 2007-08-28 05:01:19 +00:00
  • cd6e584c35 log: cleanup: avoid "magic" numbers Eric Wong 2007-08-28 05:01:16 +00:00
  • 1b045d0672 removing debug messages from signal handlers J. Alexander Treuman 2007-08-27 21:18:35 +00:00
  • 752bf24b74 interface: print whole debug message at once J. Alexander Treuman 2007-08-27 21:10:44 +00:00
  • 8d89add8e7 adding \n to a bunch of error message strings J. Alexander Treuman 2007-08-27 21:03:22 +00:00
  • f18e524176 send SIGSTOP to player and decoder processes on pause, too Eric Wong 2007-08-27 09:36:11 +00:00
  • 0f2e9ee662 export FATAL() with noreturn attribute Eric Wong 2007-08-27 08:05:55 +00:00
  • 75e34a19a3 ChangeLog: adding LAME tag ReplayGain J. Alexander Treuman 2007-08-25 17:02:41 +00:00
  • fe4b16ed96 inputPlugins/mp3_plugin: parse LAME tags for ReplayGain info J. Alexander Treuman 2007-08-22 16:42:08 +00:00
  • 5e1deab05f decode: close audio device after initial open if paused J. Alexander Treuman 2007-08-12 19:23:48 +00:00
  • d286294805 decode: reformatting for better readability J. Alexander Treuman 2007-08-12 19:15:06 +00:00
  • 3fedc4d806 audioOutputs/audioOutput_shout: adding timers back J. Alexander Treuman 2007-08-11 21:36:23 +00:00
  • e195fb8100 Cleanup a outcommented debug statement Qball Cow 2007-08-11 11:36:13 +00:00
  • 4811eadb4a Extra debug output Qball Cow 2007-07-16 20:31:37 +00:00
  • 54e6b27989 log: flush the warning log after redirecting stderr to the log files J. Alexander Treuman 2007-06-29 18:41:02 +00:00
  • 5a2f854914 replayGain: adding DEBUG messages when computing scale J. Alexander Treuman 2007-06-25 14:34:40 +00:00
  • f66b834f8f inputPlugins/wavpack_plugin: enable ReplayGain code J. Alexander Treuman 2007-06-25 14:24:30 +00:00
  • f83d1aa460 inputPlugins/wavpack_plugin: adding dummy code for ReplayGain support J. Alexander Treuman 2007-06-25 13:37:21 +00:00
  • ac5a7c2d82 decode: prefer fileDecodeFunc over streamDecodeFunc for files J. Alexander Treuman 2007-06-25 13:22:51 +00:00
  • ff6a8e2ade Updating Kodest's name/email. J. Alexander Treuman 2007-06-25 12:13:45 +00:00
  • 08ca0ae2e8 Check for pkg-config unconditionally. It might not be needed if we disable a ton of optional functionality, but it's getting hard to keep track of it all. So let's just be lazy. J. Alexander Treuman 2007-06-24 21:31:08 +00:00
  • f31b7b4677 Updating some ./configure --help text. J. Alexander Treuman 2007-06-24 21:26:44 +00:00
  • db47ab163a Adding WavPack support. Patch courtesy Kodest. J. Alexander Treuman 2007-06-24 20:40:04 +00:00
  • df32eed2cc Use parsePath for the fifo output's path parameter. J. Alexander Treuman 2007-06-13 15:37:46 +00:00
  • c734c13b5c Adding parsePath and making parseConfigFilePath use it. J. Alexander Treuman 2007-06-13 15:27:09 +00:00
  • b496239e76 Adding FIFO audio output. This is pretty much identical to the old one, except that it now uses a timer for throttling. J. Alexander Treuman 2007-06-13 14:15:30 +00:00
  • 1928a40486 Adding some ChangeLog entries. J. Alexander Treuman 2007-06-12 18:39:47 +00:00
  • 8de17dbed0 Use <= when comparing (current time - start time) to a timeout. This way 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. J. Alexander Treuman 2007-06-12 18:33:26 +00:00
  • 6f2be47270 Make the shout timeout configurable. The default is still 2 seconds. J. Alexander Treuman 2007-06-12 18:28:57 +00:00
  • 3c5cecb828 Redoing remiss's shout patch. This time, just block on open() instead of 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. J. Alexander Treuman 2007-06-12 17:58:17 +00:00
  • bd0620ff72 Load shout first instead of last. This makes it more likely to block other 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. J. Alexander Treuman 2007-06-12 17:49:31 +00:00
  • 2d8f36cefb Load the shout plugin last. This will make sure it's played to last, reducing the likelyhood of it blocking other outputs. J. Alexander Treuman 2007-06-10 22:58:56 +00:00
  • 4e5cffaa7b If an audio output is in state DEVICE_ENABLE, and openAudioOutput fails, 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). J. Alexander Treuman 2007-06-09 21:40:56 +00:00
  • 8feaf84b24 Tidying up some code. J. Alexander Treuman 2007-06-09 19:19:33 +00:00
  • 0bfe6cabce Remove a useless if (quit) block. It's enclosed in two while loops: the 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. J. Alexander Treuman 2007-06-09 16:04:00 +00:00
  • d50fc3849a This should resolve some of the timing issues experienced after switching 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 Roger Bystrøm 2007-06-09 15:51:20 +00:00
  • 50fbab086a switching to us instead of ms on runtime Roger Bystrøm 2007-06-09 15:45:36 +00:00
  • a886600474 Added timer_get_runtime_ms to know how long the timer has been running Roger Bystrøm 2007-06-09 14:03:09 +00:00
  • 9ccf0d8a25 Use string concatenation instead of snprintf for the User-Agent HTTP header. J. Alexander Treuman 2007-06-09 13:43:40 +00:00
  • 9980d233c4 Tidying up some code. J. Alexander Treuman 2007-06-09 13:34:53 +00:00
  • 52a06531fc dmix fix, don't call snd_pcm_drain unless we're already in the RUNNING state (when users press stop, previous snd_pcm_drop(), then snd_pcm_drain() was called. this would lockup dmix) Warren Dukes 2007-06-08 12:44:38 +00:00
  • df95a80fa1 Send SIGCONT to the decode process before sending it SIGTERM. J. Alexander Treuman 2007-06-07 20:02:27 +00:00
  • 01faa6f4e3 Set a flag if we've sent the player process SIGSTOP so that we know not to wait for it to complete an action which it never will. J. Alexander Treuman 2007-06-04 23:14:38 +00:00
  • 10860b33d4 Updating ChangeLog. J. Alexander Treuman 2007-06-04 22:43:57 +00:00
  • 0e4f418c29 Don't send the main process SIGUSR1 until we've sent the decode process SIGSTOP. J. Alexander Treuman 2007-06-04 22:36:39 +00:00
  • 89eca9eebc Don't kill the player process (and effectively the decode process) when completely stopped. Instead, send them SIGSTOP to pause the process until they're needed again. Then send them SIGCONT instead of re-spawning them. J. Alexander Treuman 2007-06-04 22:29:55 +00:00
  • 4734a2e2b4 Adding very experimental streaming support for mp4. J. Alexander Treuman 2007-06-04 19:24:19 +00:00
  • cbdc0b1534 Use strncasecmp instead of strncmp when comparing HTTP headers. It seems some versions of shoutcast send "content-type" in all lowercase, and I don't trust other servers to get the case right for the rest of the headers we look for. J. Alexander Treuman 2007-06-04 19:02:23 +00:00
  • caa17db85e Add MIME types for the aac and mp4 input plugins. Note that these won't have any effect until the aac and mp4 input plugins actually support a stream decoding API. J. Alexander Treuman 2007-06-04 18:57:34 +00:00
  • 71094905e3 Cleanup some formatting in decode.c. J. Alexander Treuman 2007-06-04 18:55:46 +00:00
  • 4685c782c4 Actually load the aac input plugin. J. Alexander Treuman 2007-06-04 18:54:46 +00:00
  • 1b68d00b3b Don't initialize zeroconf until after we've daemonized and log output has been redirected. This prevents zeroconf from blocking daemonization, and makes sure any errors get sent to the logs and not stdout. J. Alexander Treuman 2007-06-04 17:41:18 +00:00
  • 652c2fc8b0 Adding ChangeLog entry for zeroconf_enabled, adding Zeroconf section to mpdconf.example, and updating the zeroconf_* docs. J. Alexander Treuman 2007-06-03 20:09:12 +00:00
  • 7e2cbdee05 Removing that space that was recently added to the "Icy-Metadata: 1" HTTP header. While this is odd for an HTTP header, it's actually quite common for streaming clients to send it without a space. Some clients do send with a space as well, but without one has always worked fine and may in fact be more compatible. J. Alexander Treuman 2007-06-03 19:46:03 +00:00
  • d5596a1cf0 Define HAVE_ZEROCONF if Avahi or Bonjour support is enabled, so that we can silence a warning about an unused variable without using stupid checks for HAVE_AVAHI || HAVE_BONJOUR. J. Alexander Treuman 2007-06-03 19:44:19 +00:00
  • ab14f8a3c7 Oops, forgot to test that last bool commit. Fixing an error and warning. J. Alexander Treuman 2007-06-03 19:30:37 +00:00
  • f84bfb7c64 ChangeLog entry for Bonjour support. J. Alexander Treuman 2007-06-03 19:27:24 +00:00
  • a6fecd6c05 Making some bool options more consistent. J. Alexander Treuman 2007-06-03 19:25:25 +00:00
  • d67737bc64 allow zeroconf to be disabled. Patrik Weiskircher 2007-06-03 18:08:51 +00:00
  • 4025498488 Cleaning up zeroconf configure magic. J. Alexander Treuman 2007-06-03 00:03:20 +00:00
  • e41601c98b Check if we need -ldns_sd for Bonjour. J. Alexander Treuman 2007-06-02 22:58:51 +00:00
  • f3be4e8c91 Adding a missing include. J. Alexander Treuman 2007-06-02 22:52:53 +00:00
  • 5f8d6d6900 Removing some commented code that wrote HTTP streams to stdout. J. Alexander Treuman 2007-06-02 21:32:59 +00:00
  • b91af54d2a Added Bonjour zeroconf support. This works now natively on MacOS X. I couldn't test mDNSResponder support on Linux, as Debian doesn't include it - but should work as well. Patrik Weiskircher 2007-06-02 17:06:08 +00:00
  • 7b07a45dc4 Someone forgot a space in the "Icy-Metadata: 1" HTTP header. J. Alexander Treuman 2007-06-02 16:48:54 +00:00
  • dd83898064 Requiring autoconf 2.60. This is needed for the new C99 and POSIX type checks that are now used. J. Alexander Treuman 2007-06-01 18:32:25 +00:00
  • 6d7e0eb166 Tell the player process (and thus also the decode process) to quit when playback is stopped completely. This means the player process will no longer have to wake up 100 times per second to see if it's been told to start playing (the main process will just spawn a new player process when it needs to). On the downside, this means an extra pair of forks() and the re-initializing of the player and decode processes each time playback is restarted. J. Alexander Treuman 2007-06-01 18:10:13 +00:00
  • 88638f4821 Removing the getBoundPort() function and just making boundPort an extern. J. Alexander Treuman 2007-06-01 17:44:03 +00:00
  • 485d1f68dd Minor formatting cleanups. J. Alexander Treuman 2007-06-01 12:53:13 +00:00
  • 38c258dd9a Starting 0.14.0 ChangeLog entry. J. Alexander Treuman 2007-05-30 20:19:12 +00:00
  • aaea59e501 Bumping version numbers to 0.14.0. J. Alexander Treuman 2007-05-30 20:12:32 +00:00
  • 72cbcef0c0 Forgot a change to configure.ac in one of the previous commits. J. Alexander Treuman 2007-05-30 20:08:24 +00:00
  • bc95aa0e12 Only call finishDriverFunc if there is one. The null plugin doesn't have one now, and trying to call NULL was causing a segfault at exit. J. Alexander Treuman 2007-05-30 18:31:38 +00:00