aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputControl.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-11-28include cleanup using iwyuMax Kellermann1-3/+0
2013-11-25Volume, Output: use new class PeriodClock instead of GTimerMax Kellermann1-15/+7
2013-11-06OutputControl: reduce the number of OutputThread wakeupsMax Kellermann1-1/+4
Wake up the OutputThread only if it hasn't already been woken up and if it isn't already in the playback loop.
2013-10-25ReplayGainInfo: use CamelCase for struct nameMax Kellermann1-1/+2
2013-10-20OutputControl: convert anonymous enum to constexprMax Kellermann1-5/+3
2013-10-19*: use nullptr instead of NULLMax Kellermann1-20/+20
2013-10-17Thread/Thread: replacement library for GThreadMax Kellermann1-6/+5
2013-10-02Log: new logging library APIMax Kellermann1-2/+5
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-27DecoderControl: use GLib forward declarationsMax Kellermann1-0/+2
2013-09-26MusicPipe: expose the C++ APIMax Kellermann1-8/+5
2013-09-04util/Error: new error passing libraryMax Kellermann1-6/+4
Replaces GLib's GError.
2013-08-03audio_format: convert to C++Max Kellermann1-6/+5
2013-04-17OutputInternal: use Mutex instead of GMutexMax Kellermann1-27/+16
2013-04-17output: convert to C++Max Kellermann1-6/+2
2013-02-22mixer_plugin: convert to C++Max Kellermann1-2/+2
2013-02-01filter: convert to C++Max Kellermann1-1/+1
2013-01-30{encoder,output}_api.h: allow compiling as C++Max Kellermann1-1/+1
2013-01-10notify: convert to C++Max Kellermann1-2/+2
2013-01-07filter/replay_gain: convert to C++Max Kellermann1-1/+1
2013-01-05filter/ReplayGain: add method _set_mode()Max Kellermann1-0/+9
Push the new mode to the filter instead of accessing global variables through replay_gain_get_real_mode().
2013-01-04output_*: convert to C++Max Kellermann1-4/+8
2011-10-06output_control: remove unused prototype _close_locked()Max Kellermann1-3/+0
2011-09-19output_plugin: the plugin allocates the audio_output objectMax Kellermann1-1/+1
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.
2011-09-01output_all: move _lock_signal() to output_control.cMax Kellermann1-0/+12
Better name, better documentation.
2011-09-01output_thread: reimplement CANCEL synchronizationMax Kellermann1-5/+13
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.
2011-08-30output_control: move code to audio_output_destruct()Max Kellermann1-17/+2
.. and destruct the output object properly in test/run_output.
2011-03-16audio_format, output_thread: add more audio_format_valid() assertionsMax Kellermann1-0/+1
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10output_control: document internal functionsMax Kellermann1-0/+17
2011-01-10output_control: move code to ao_lock_command()Max Kellermann1-9/+15
2011-01-10output_control: ao_command() calls ao_command_async()Max Kellermann1-7/+6
Merge some code.
2010-11-04output_control: lock object in audio_output_open()Max Kellermann1-6/+19
Protect the attributes "open" and "fail_timer".
2010-11-04output_control: lock object in audio_output_close()Max Kellermann1-2/+28
Protect the attributes "open" and "fail_timer".
2010-05-02output_thread: call replay gain filter manuallyMax Kellermann1-0/+6
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).
2010-05-02player_thread: move cross-fading to output threadMax Kellermann1-0/+2
Remove cross_fade_apply(), and call pcm_mix() in the output thread, mixing the chunk and chunk->other together.
2010-03-10output: added option "always_on" for radio stationsMax Kellermann1-1/+14
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.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-12include config.h in all sourcesMax Kellermann1-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.
2009-11-09output_thread: added command DRAINMax Kellermann1-0/+9
This command manually drains the hardware buffer. This is useful when the player thread want to make sure that everything has been played.
2009-11-02output: signal the output thread when CANCEL is finishedMax Kellermann1-0/+4
After CANCEL, the output thread waits for another signal before it continues playback, to synchronize with the caller. There were some situations where this signal wasn't sent properly. This patch adds an explicit g_cond_signal() at two code positions.
2009-11-02{decoder,player}_control: removed duplicate wakeupsMax Kellermann1-1/+1
Don't wake up the target thread in every iteration of the wait() loop. Waking it up once, right after the command has been set, must be enough.
2009-10-29output_control: fixed deadlock in audio_output_update()Max Kellermann1-1/+21
Call a version of audio_output_close() which doesn't lock recursively.
2009-10-29output: consistently lock audio output objectsMax Kellermann1-12/+39
Always keep the audio_output object locked within the output thread, unless a plugin method is called. This fixes several race conditions.
2009-10-23output_plugin: added methods enable() and disable()Max Kellermann1-1/+36
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.
2009-10-20mixer_plugin: use GError for error handlingMax Kellermann1-2/+9
2009-08-14output: fixed shout stuck pause bugMax Kellermann1-0/+11
Explicitly make the output thread leave the ao_pause() loop. This patch is a workaround, and the "pause" flag is not managed in a thread-safe way, but that's good enough for now.
2009-07-06output: attach a filter chain to each audio_outputMax Kellermann1-0/+3
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.
2009-07-06output: added command REOPENMax Kellermann1-14/+1
REOPEN is called when the input audio format changes. The output thread may be reconfigure the PCM converter.
2009-04-21output_control: close mixer on pauseMax Kellermann1-0/+6
For non-global mixers (only "pulse" currently), close the mixer when MPD playback is paused.
2009-03-26mixer: added flag "open"Max Kellermann1-1/+2
Remember if a mixer object is open or closed. Don't call open() again if it is already open. This guarantees that the mixer plugin is always called in a consistent state, and we will be able to remove lots of checks from the implementations. To support mixers which are automatically opened even if the audio output is still closed (to set the volume before playback starts), this patch also adds the "global" flag to the mixer_plugin struct. Both ALSA and OSS set this flag, while PULSE does not.