aboutsummaryrefslogtreecommitdiffstats
path: root/src/output (follow)
Commit message (Collapse)AuthorAgeFilesLines
* alsa_plugin.c: workaround snd_pcm_drain bugJeffrey Middleton2009-11-021-1/+2
| | | | | | | Reintroduce a fix from commit 52a0653 (Warren Dukes): "don't call snd_pcm_drain unless we're already in the RUNNING state". This prevents ALSA with dmix from sometimes hanging when snd_pcm_drain is called, e.g. when moving from one song to the next (as in mantis issue 2634).
* httpd: add config option to limit number of clientsViliam Mateicka2009-10-292-3/+20
|
* output_plugin: added method "drain"Max Kellermann2009-10-291-3/+9
| | | | | | | drain() is the opposite of cancel(): it waits until all data in the buffer has finished playing. Instead of implicitly draining in the close() method like the ALSA plugin has been doing it forever, let the output thread decide whether to drain or to cancel.
* output/alsa: don't recover on CANCELMax Kellermann2009-10-291-1/+1
| | | | | | The recovery is for nothing if we get CLOSE afterwards. Let's not recover in the cancel() method, and let the next play() call sort it out.
* output/pulse: initialize pulse_output.mixerMax Kellermann2009-10-291-0/+1
| | | | This variable was uninitialized and led to crashes.
* include pulse/version.h for PA_CHECK_VERSIONAlam Arias2009-10-271-0/+2
|
* output/jack: implement methods enable()/disable()Max Kellermann2009-10-231-16/+24
| | | | Don't connect to JACK before MPD has daemonized.
* output/pulse: implement methods enable()/disable()Max Kellermann2009-10-231-9/+35
| | | | Don't connect to PulseAudio before MPD has daemonized.
* output_plugin: added methods enable() and disable()Max Kellermann2009-10-231-0/+2
| | | | | | | With these methods, an output plugin can allocate some global resources only if it is actually enabled. The method enable() is called after daemonization, which allows for more sophisticated resource allocation during that method.
* output/pulse: call mixer on state changesMax Kellermann2009-10-232-2/+117
| | | | | | Don't let the mixer plugin "override" the libpulse callbacks. Instead, add a "mixer" attribute to the pulse_output struct, and call the mixer on all interesting events.
* output/fifo: renamed source to fifo_output_plugin.cMax Kellermann2009-10-221-3/+3
|
* audio_format: wildcards allowed in audio_format configurationMax Kellermann2009-10-211-2/+7
| | | | | | An asterisk means that this attribute should not be enforced, and stays whatever it used to be. This way, some configuration values work like masks.
* output/jack: make ringbuffer_size a size_tMax Kellermann2009-10-211-1/+1
|
* output/jack: connect to server on MPD startupMax Kellermann2009-10-211-69/+119
| | | | | .. and keep up the JACK connection while MPD runs. Allocate the ring buffers on the first open, and free them at MPD exit.
* output/jack: removed the empty "cancel" methodMax Kellermann2009-10-211-6/+0
| | | | | JACK doesn't need cancel() because it won't do much anyway. Buffers are small.
* output/jack: renamed parameter "error" to "error_r"Max Kellermann2009-10-211-12/+12
| | | | It's a double pointer.
* output/jack: implement the "pause" methodMax Kellermann2009-10-211-0/+41
| | | | Don't disconnect from JACK during pause.
* output/jack: renamed source to jack_output_plugin.cMax Kellermann2009-10-211-2/+2
|
* pulse: code rewrite using the asynchronous libpulse APIMax Kellermann2009-10-212-73/+639
| | | | | | | | This is a complete rewrite of the PulseAudio output plugin. It uses the asynchronous API, which gives us more control over everything. Additionally, it connects to the PulseAudio server on startup, and keeps this connection up while MPD runs. During pause, instead of closing the stream, it enables "cork".
* mixer/{oss,alsa}: renamed the mixer source filesMax Kellermann2009-10-202-2/+4
|
* output/pulse: renamed context to "Music Player Daemon"Max Kellermann2009-10-201-1/+1
| | | | This looks nicer in the PulseAudio manager than just "mpd".
* pulse: renamed source filesMax Kellermann2009-10-201-3/+5
|
* pulse: announce "media.role=music"Max Kellermann2009-10-201-0/+2
| | | | This allows PulseAudio to do some advanced tweaks.
* tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann2009-10-132-5/+4
|
* configure.ac: require GLib 2.16Max Kellermann2009-10-131-5/+0
| | | | | | | Accidently, MPD has been using several GLib 2.16 functions for a while, and nobody noticed yet. To simplify the code base, let's bump the minimum GLib version for MPD to 2.16. That version is old enough, and it's reasonable to expect users to have it.
* output/osx: fix the OS X 10.6 buildPatrik Weiskircher2009-09-201-0/+1
| | | | Include CoreServices/CoreServices.h.
* output/openal: support OpenAL plugin on Mac OS XSerge Ziryukin2009-09-071-0/+6
|
* output/openal: fix default device nameSerge Ziryukin2009-09-061-3/+3
|
* openal output pluginSerge Ziryukin2009-09-061-0/+267
|
* output/recorder: new output plugin for recording radio streamsMax Kellermann2009-08-241-0/+214
| | | | | | | | | The recorder plugin writes audio played by MPD to a file. This may be useful for recording radio streams. This implementation is incomplete, because support for tags is missing, and MPD should be able to record each track to a different file.
* Merged release 0.15.2 from branch 'v0.15.x'Max Kellermann2009-08-151-0/+7
|\ | | | | | | | | | | | | Conflicts: NEWS configure.ac
| * output/shout: minimize the unpause latencyMax Kellermann2009-08-141-0/+7
| | | | | | | | | | During the pause loop, manually sleep for 500ms if shout_delay() returns a value greater than that. Don't exhaust libshout's buffer.
* | Support wrong-endian ALSA outputDavid Woodhouse2009-07-191-2/+50
|/
* output/httpd: removed duplicate sys/types.h includeMax Kellermann2009-07-141-4/+0
| | | | | The first patch by Patrick didn't work, because his "#ifdef HAVE_OSX" line would have required config.h.
* output/httpd: include sys/types.hMax Kellermann2009-07-061-0/+1
| | | | | | On Mac OS X, the httpd plugin cannot be compiled, because OS X's system headers do nto include sys/types.h, although they use u_int32_t.
* conf: eliminated CamelCaseMax Kellermann2009-06-031-1/+1
| | | | Renamed all remaining CamelCase functions.
* latest git, httpd_output_plugin compile fix, mac os xPatrik Weiskircher2009-05-101-0/+4
| | | | | | | | | | Hello, While compiling latest git I've received a compile error in the httpd_output_plugin. Small patch attached. Patrik
* httpd_output: save the page generated by encoder_tag()Max Kellermann2009-05-051-0/+21
| | | | | | | | Flush the encoder before calling encoder_tag(). The first page generated by the encoder after sending the tag will be the new "header" page, which is sent to all HTTP clients when they connect. This is a little bit specific to the vorbis encoder, but there are no other encoders which support tags (yet).
* httpd_output: moved code to httpd_output_encoder_to_clients()Max Kellermann2009-05-051-14/+32
| | | | | | Moved some code from httpd_output_encode_and_play() into separate functions httpd_output_broadcast_page() and httpd_output_encoder_to_clients().
* httpd_output: disable Icy-Metadata when encoder supports tagsMax Kellermann2009-05-053-18/+35
| | | | | | There's no reason to send both encoder tags and Icy-Metadata to the client. Let's disable Icy-Metadata when the encoder supports embedded tags.
* httpd_output: assert that tag!=NULLMax Kellermann2009-05-051-8/+7
| | | | | In the tag() method, MPD guarantees that it does not pass tag==NULL. Converted the runtime check to an assertion.
* alsa_output: don't use atexit() to clean up the ALSA libraryMax Kellermann2009-04-211-7/+3
| | | | | Call snd_config_update_free_global() manually in our finish() method, don't use atexit().
* httpd: use C99 "bool" instead of GLib's gbooleanMax Kellermann2009-04-131-7/+7
| | | | Plain "bool" consumes only one byte instead of four.
* httpd: use g_ascii_strncasecmp() to compare headersMax Kellermann2009-04-131-1/+1
| | | | In HTTP, header names are case insensitive.
* Implemented basic icy support for the httpd outputHagen Schink2009-04-134-12/+223
| | | | | | [mk: folded with patch "Put icy related functions in extra source files"; moved icy_server.c from HAVE_CURL to ENABLE_HTTPD_OUTPUT; removed an unused variable]
* httpd: don't pass uninitialized page to httpd_client_check_queue()Max Kellermann2009-04-011-1/+1
| | | | | The httpd_client_check_queue() callback function does not use its "user_data" argument. Don't pass any, and fix the gcc warning.
* pulse: make configuration strings constMax Kellermann2009-03-261-6/+4
| | | | | | Nobody needs to modify these strings. We can make them const, and convert config_dup_block_string() to config_get_block_string(). This also fixes memory leaks in the pulse mixer.
* pulse: don't check config_param!=NULLMax Kellermann2009-03-261-4/+2
| | | | | The conf.h functions deal well with config_param==NULL and will return the specified default value then.
* output_plugin: replaced output_plugin.get_mixer() with mixer_pluginMax Kellermann2009-03-263-55/+3
| | | | | | The mixer core library is now responsible for creating and managing the mixer object. This removes duplicated code from the output plugins.
* httpd: fixed encoder plugin checkJeffrey Middleton2009-03-171-1/+1
| | | | | Check if encoder_plugin!=NULL, not encoder_plugin_get (which is a function).