aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/OutputControl.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-23output/*: move to output/plugins/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-12/+16
2013-10-28player_control: rename to PlayerControlMax Kellermann1-1/+0
2013-10-25ReplayGainInfo: use CamelCase for struct nameMax Kellermann1-1/+1
2013-10-02replay_gain_*.h: rename to *.hxxMax Kellermann1-1/+1
2013-09-26MusicPipe: expose the C++ APIMax Kellermann1-2/+2
2013-08-03audio_format: convert to C++Max Kellermann1-2/+2
2013-01-30TagPool, ...: include cleanupMax Kellermann1-8/+0
2013-01-05filter/ReplayGain: add method _set_mode()Max Kellermann1-0/+6
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/+3
2011-09-19output_plugin: the plugin allocates the audio_output objectMax Kellermann1-5/+0
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-2/+8
Better name, better documentation.
2011-09-01output_thread: reimplement CANCEL synchronizationMax Kellermann1-0/+5
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-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-0/+2
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.
2010-03-10output: added option "always_on" for radio stationsMax Kellermann1-0/+9
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-09output_thread: added command DRAINMax Kellermann1-0/+3
This command manually drains the hardware buffer. This is useful when the player thread want to make sure that everything has been played.
2009-10-23output_plugin: added methods enable() and disable()Max Kellermann1-0/+12
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-20output_init: renamed parameter "error" to "error_r"Max Kellermann1-1/+1
It's a double pointer.
2009-03-13all: Update copyright header.Avuton Olrich1-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.
2009-03-10output_control: removed audio_output_signal()Max Kellermann1-8/+0
This function was part of a workaround which we don't need anymore.
2009-03-09output: play from a music_pipe objectMax Kellermann1-5/+4
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.
2009-03-09output_control: make audio_output_open() staticMax Kellermann1-4/+0
audio_output_open() is only called by audio_output_update(). Don't export it.
2009-03-07output_all: audio_output_all_update() returns boolMax Kellermann1-1/+3
audio_output_all_update() returns true when there is at least open output device which is open.
2009-03-01output_init: return GError on errorMax Kellermann1-1/+10
Do error handling with GError instead of aborting with g_error().
2009-02-25output: audio_output_init() returns boolMax Kellermann1-1/+1
Return true/false instead of 1/0.
2009-02-23output: pass the music chunk pointer as void*, not char*Max Kellermann1-1/+1
The meaning of the chunk depends on the audio format; don't suggest a specific format by declaring the pointer as "char*", pass "void*" instead.
2009-02-16output_control: no CamelCaseMax Kellermann1-12/+11
Renamed variables.
2009-01-25conf: const pointers in block get functionsMax Kellermann1-1/+1
All config_get_block_*() functions should accept constant config_param pointers.
2009-01-18output: don't include conf.h from output_control.hMax Kellermann1-2/+1
Minimize header dependencies.
2009-01-17conf: no CamelCase, part IMax Kellermann1-1/+2
Renamed functions, types, variables.
2008-10-31added prefix to header macrosMax Kellermann1-2/+2
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
2008-10-29output: moved code to audio_output_update()Max Kellermann1-0/+7
Moved code from syncAudioDeviceStates() to audio_output_update().
2008-10-29output: use bool for return values and flagsMax Kellermann1-2/+5
Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
2008-10-08don't include os_compat.hMax Kellermann1-1/+2
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-09-29audio_output: added method pause()Max Kellermann1-0/+3
pause() puts the audio output into pause mode: if supported, it may perform a special action, which keeps the device open, but does not play anything. Output plugins like "shout" might want to play silence during pause, so their clients won't be disconnected. Plugins which do not support pausing will simply be closed, and have to be reopened when unpaused. This pach includes an implementation for the shout plugin, which sends silence chunks.
2008-09-26audio_output: workaround for deadlockMax Kellermann1-0/+9
During debugging, I found a deadlock between flushAudioBuffer() and the audio_output_task(): audio_output_task() didn't notice that there is a command, and flushAudioBuffer() waited forever in notify_wait(). I am not sure yet what is the real cause; work around this for now by waking up non-finished audio outputs in every iteration.
2008-09-24output: semi-asynchronous playbackMax Kellermann1-2/+2
Send an output buffer to all output plugins at the same time, instead of waiting for each of them separately. Make several functions non-blocking, and introduce the new function audio_output_wait_all() to synchronize with all audio output threads.
2008-09-09output: renamed the functions in output_control.cMax Kellermann1-10/+10
Getting rid of CamcelCase, again.
2008-09-09output: moved code from audioOutput.c to output_control.cMax Kellermann1-6/+2
Similar to decoder_control.c, output_control.c will provide functions for controlling the output thread (which will be implemented later).
2008-09-09output: removed keepAudioOutputAlive() declarationMax Kellermann1-1/+0
This function is declared, but is neither used nor implemented.
2008-09-08output: static audio_output_plugin list as arrayMax Kellermann1-17/+0
Instead of having to register each output plugin, store them statically in an array. This eliminates the need for the List library here, and saves some small allocations during startup.
2008-09-07output: renamed typedef AudioOutput to struct audio_outputMax Kellermann1-21/+22
Also rename AudioOutputPlugin to struct audio_output_plugin, and use forward declarations to reduce include dependencies.
2008-09-07output: added output_api.hMax Kellermann1-64/+3
Just like decoder_api.h, output_api.h provides the audio output API which is used by the plugins.
2008-09-07audio_format: converted typedef AudioFormat to struct audio_formatMax Kellermann1-4/+4
Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies.
2008-08-29tag: renamed MpdTag and MpdTagItem to struct tag, struct mpd_tag_itemMax Kellermann1-2/+3
Getting rid of CamelCase; not having typedefs also allows us to forward-declare the structures.
2008-08-29pass constant pointersMax Kellermann1-2/+2
And again, convert arguments to const.
2008-08-26moved struct AudioFormat to audio_format.hMax Kellermann1-1/+1
We want to expose the AudioFormat structure to plugins; remove some clutter by moving its declaration to a separate header file.