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
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