aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* output_*: convert to C++Max Kellermann2013-01-041-333/+0
|
* output: new option "tags" may be used to disable sending tagsMax Kellermann2012-09-251-0/+1
| | | | Implements Mantis ticket 0003340.
* output_init: put the "convert" filter at the end of the listMax Kellermann2012-07-101-7/+7
| | | | | No, really! This fixes a regression of commit 74617389, which changed the order of filter plugins.
* Merge branch 'v0.16.x'Max Kellermann2012-06-121-4/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cmdline.c src/decoder/wildmidi_decoder_plugin.c src/gcc.h src/glib_compat.h src/input_stream.c src/output_list.c src/output_thread.c valgrind.suppressions
| * output_list: declare variables inside _plugins_for_each()Max Kellermann2012-06-121-4/+1
| | | | | | | | Don't require the caller to provide them.
* | output_init: initialize replay gain filters to NULL in ao_base_init()Denis Krjuchkov2011-12-131-0/+2
| | | | | | | | | | | | If output plugin fails to init it will try to call ao_base_finish() immediately, which segfaults because replay gain filters are not initialized yet and contain garbage values.
* | output_plugin: the plugin allocates the audio_output objectMax Kellermann2011-09-191-67/+101
| | | | | | | | | | | | Pass audio_output objects around instead of void pointers. This will give some more control to the plugin, and prepares for non-blocking audio outputs.
* | Merge branch 'v0.16.x'Max Kellermann2011-09-011-0/+1
|\| | | | | | | | | | | Conflicts: configure.ac src/output_control.c
| * output_thread: reimplement CANCEL synchronizationMax Kellermann2011-09-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The output thread could hang indefinitely after finishing CANCEL, because it could have missed the signal while the output was not unlocked in ao_command_finished(). This patch removes the wait() call after CANCEL, and adds the flag "allow_play" instead. While this flag is set, playback is skipped. With this flag, there will not be any excess wait() call after the pipe has been cleared. This patch fixes a bug that causes mpd to discontinue playback after seeking, due to the race condition described above.
* | copyright year 2011Max Kellermann2011-01-291-1/+1
| |
* | player_control: removed the global variable "pc"Max Kellermann2011-01-101-0/+5
|/ | | | | | | Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
* output_thread: call replay gain filter manuallyMax Kellermann2010-05-021-2/+9
| | | | | | Don't add it to the filter chain, because we need to apply replay gain before cross-fading with the next song. Add a second replay_gain filter which is used for the song being faded in (chunk->other).
* player_thread: move cross-fading to output threadMax Kellermann2010-05-021-0/+2
| | | | | Remove cross_fade_apply(), and call pcm_mix() in the output thread, mixing the chunk and chunk->other together.
* output: added option "always_on" for radio stationsMax Kellermann2010-03-101-0/+1
| | | | | | | Did you ever accidently click "stop" while feeding a radio station? This option sets the output device to "pause" to disable the "close" method. It falls back to "pause" then, which is specific to the plugin. Some plugins implement it by feeding silence.
* replay_gain: optionally use hardware mixer to apply replay gainMax Kellermann2010-02-171-5/+28
| | | | | | | | | | Add an option for each audio output which enables the use of the hardware mixer, instead of the software volume code. This is hardware specific, and assumes linear volume control. This is not the case for hardware mixers which were tested, making this patch somewhat useless, but we will use it to experiment with the settings, to find a good solution.
* replay_gain: reimplement as a filter pluginMax Kellermann2010-02-171-0/+11
| | | | | | | Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* output_init: use the normalize filter pluginMax Kellermann2009-12-251-0/+11
| | | | | | Use the plugin instead of the glue code in normalize.c. This is used wrapped inside a "autoconv" filter, to enable normalization for all input file formats.
* Proper error reporting from filter_configAlbin Eldstål-Damlin2009-12-141-1/+10
|
* Split filter_config into its own moduleAlbin Eldstål-Damlin2009-12-141-0/+1
|
* Initial filter chain and filter configuration for outputs.Albin Eldstål-Damlin2009-12-141-0/+4
|
* include config.h in all sourcesMax Kellermann2009-11-121-0/+1
| | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* output: consistently lock audio output objectsMax Kellermann2009-10-291-1/+1
| | | | | Always keep the audio_output object locked within the output thread, unless a plugin method is called. This fixes several race conditions.
* output_plugin: added methods enable() and disable()Max Kellermann2009-10-231-0/+1
| | | | | | | 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.
* audio_format: wildcards allowed in audio_format configurationMax Kellermann2009-10-211-3/+2
| | | | | | 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: convert config_audio_format to an audio_format structMax Kellermann2009-10-211-6/+7
| | | | This allows more sophisticated audio format selection.
* mixer_plugin: pass audio_output pointer to mixer_plugin.init()Max Kellermann2009-10-211-4/+5
| | | | | This allows the mixer object to access its associated audio output object.
* mixer_plugin: use GError for error handlingMax Kellermann2009-10-201-4/+11
|
* output_init: renamed parameter "error" to "error_r"Max Kellermann2009-10-201-7/+7
| | | | It's a double pointer.
* Merged release 0.15.3 from branch 'v0.15.x'Max Kellermann2009-08-301-0/+1
|\ | | | | | | | | | | | | Conflicts: NEWS configure.ac
| * output_init: initialize the "pause" flagMax Kellermann2009-08-181-0/+1
| | | | | | | | Fix stuttering due to uninitialized variable.
* | output: use the software mixer pluginMax Kellermann2009-07-061-6/+52
| | | | | | | | | | | | | | | | | | | | Do all the software volume stuff inside each output thread, not in the player thread. This allows one software mixer per output device, and also allows the user to configure the mixer type (hardware or software) for each audio output. This moves the global "mixer_type" setting into the "audio_output" section, deprecating the "mixer_enabled" flag.
* | output_init: moved the "convert" filter at the endMax Kellermann2009-07-061-5/+9
| | | | | | | | | | | | The "convert" filter must be the last filter in the chain. Ensure that by doing its initialization at the very end of audio_output_init().
* | output_init: merge two local string variablesMax Kellermann2009-07-061-11/+9
| |
* | output_init: parse audio format earlierMax Kellermann2009-07-061-12/+10
| |
* | output: attach a filter chain to each audio_outputMax Kellermann2009-07-061-1/+14
| | | | | | | | | | | | | | | | This patch adds initial filter support for audio outputs. Each audio output gets a "filter" attribute, which is used by ao_play_chunk(). The PCM conversion is now performed by convert_filter_plugin. audio_output.convert_state has been removed.
* | output_init: moved mixer instantiation to separate functionMax Kellermann2009-07-051-5/+14
|/
* output_init: added option to disable the hardware mixerMax Kellermann2009-04-281-1/+2
| | | | | Added the per-device option "mixer_enabled" which allows users to disable the hardware mixer of an audio output.
* output_plugin: replaced output_plugin.get_mixer() with mixer_pluginMax Kellermann2009-03-261-0/+6
| | | | | | The mixer core library is now responsible for creating and managing the mixer object. This removes duplicated code from the output plugins.
* output: convert audio_output.config_audio_format to booleanMax Kellermann2009-03-201-5/+6
| | | | | | | The config_audio_format used to contain the configured audio format, which is copied to out_audio_format. Let's convert the former to a boolean, which indicates whether out_audio_format was already set. This simplifies some code and saves a few bytes.
* all: Update copyright header.Avuton Olrich2009-03-131-6/+7
| | | | | | | | 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.
* output: play from a music_pipe objectMax Kellermann2009-03-091-0/+1
| | | | | | | | Instead of passing individual buffers to audio_output_all_play(), pass music_chunk objects. Append all those chunks asynchronously to a music_pipe instance. All output threads may then read chunks from this pipe. This reduces MPD's internal latency by an order of magnitude.
* output_init: removed getBlockParam()Max Kellermann2009-03-011-18/+20
| | | | Use config_get_block_string() and manual GError handling instead.
* output_init: return GError on errorMax Kellermann2009-03-011-19/+15
| | | | Do error handling with GError instead of aborting with g_error().
* output_init: moved code to audio_output_detect()Max Kellermann2009-03-011-16/+26
|
* output: use GTimer instead of time_t for reopen after failureMax Kellermann2009-02-281-1/+1
| | | | | | | 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.
* output: added option to disable audio outputs by defaultMax Kellermann2009-02-281-1/+1
| | | | | The option "enabled" is on by default. If you specify "enabled no" in an audio_output section, then this device is disabled by default.
* output_plugin: report errors with GErrorMax Kellermann2009-02-261-3/+8
| | | | | | | Use GLib's GError library for reporting output device failures. Note that some init() methods don't clean up properly after a failure, but that's ok for now, because the MPD core will abort anyway.
* output: audio_output_init() returns boolMax Kellermann2009-02-251-4/+4
| | | | Return true/false instead of 1/0.
* output: set a GLib log domainMax Kellermann2009-02-251-0/+3
|