aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_command.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* output_plugin: added methods enable() and disable()Max Kellermann2009-10-231-0/+9
| | | | | | | 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.
* state_file: save only if something has changedMax Kellermann2009-10-081-0/+6
| | | | | | If nothing has changed since the last save, don't save the state file. Saving will spin up the hard drive, which is undesirable on hosts where MPD is idling in background.
* output_plugin: replaced output_plugin.get_mixer() with mixer_pluginMax Kellermann2009-03-261-1/+1
| | | | | | The mixer core library is now responsible for creating and managing the mixer object. This removes duplicated code from the output plugins.
* mixer_api: moved functions to mixer_control.cMax Kellermann2009-03-141-1/+1
| | | | | | mixer_control.h should provide the functions needed to manipulate a mixer, without exposing the internal mixer API (which is provided by mixer_api.h).
* all: Update copyright header.Avuton Olrich2009-03-131-3/+4
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* mixer_control: don't touch mixers of disabled outputsMax Kellermann2009-03-121-0/+9
| | | | When an audio output device is disabled, also disable its mixer.
* output: use GTimer instead of time_t for reopen after failureMax Kellermann2009-02-281-1/+0
| | | | | | | time() is not a monotonic timer, and MPD might get confused by clock skews. clock_gettime() provides a monotonic clock, but is not portable to non-POSIX systems (i.e. Windows). This patch uses GLib's GTimer API, which aims to be portable.
* audio: moved code to output_command.cMax Kellermann2009-02-111-0/+62
The output_command library provides a command interface to the audio outputs. It assumes the input comes from an untrusted source (i.e. the client) and verifies all parameters.