aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Internal.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-10-24OutputThread: unlock mutex for CloseFilter()Max Kellermann1-0/+5
Be consistent.
2014-08-12MusicChunk: rename struct to MusicChunkMax Kellermann1-5/+5
2014-02-19Mixer: add class MixerListenerMax Kellermann1-1/+4
Use a listener interface instead of GlobalEvents.
2014-02-05MixerPlugin: add EventLoop& init() parameterMax Kellermann1-1/+2
2014-01-29OutputThread: move more functions into the AudioOutput classMax Kellermann1-0/+45
2014-01-29output: rename "chunk" to "current_chunk"Max Kellermann1-5/+6
2014-01-29output: move functions into the AudioOutput structMax Kellermann1-16/+101
2014-01-29AudioOutput: make "plugin" a referenceMax Kellermann1-1/+1
2014-01-29AudioOutput: pass plugin to constructorMax Kellermann1-3/+2
Make it "const".
2014-01-28AudioOutput: add constructor and destructorMax Kellermann1-3/+3
2014-01-28output: rename source filesMax Kellermann1-0/+0
2014-01-28output: rename struct audio_output to AudioOutputMax Kellermann1-7/+7
2014-01-28OutputPlugin: rename struct audio_output_plugin to AudioOutputPluginMax Kellermann1-2/+3
2014-01-23output/*: move to output/plugins/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-12-28pcm/PcmMix: improved ditheringMax Kellermann1-0/+6
Use the existing PcmDither library.
2013-11-25Volume, Output: use new class PeriodClock instead of GTimerMax Kellermann1-4/+2
2013-11-06OutputControl: reduce the number of OutputThread wakeupsMax Kellermann1-0/+15
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-28player_control: rename to PlayerControlMax Kellermann1-3/+4
2013-10-19*: use references instead of pointersMax Kellermann1-1/+1
2013-10-19*: use nullptr instead of NULLMax Kellermann1-3/+3
2013-10-17Thread/Thread: replacement library for GThreadMax Kellermann1-2/+2
2013-09-27DecoderControl: use GLib forward declarationsMax Kellermann1-2/+2
2013-09-26MusicPipe: expose the C++ APIMax Kellermann1-1/+2
2013-09-04util/Error: new error passing libraryMax Kellermann1-2/+3
Replaces GLib's GError.
2013-08-04OutputPlugin: pass config_param referenceMax Kellermann1-2/+2
2013-08-03audio_format: convert to C++Max Kellermann1-4/+4
2013-07-30pcm_buffer: convert to C++Max Kellermann1-2/+2
2013-04-17OutputInternal: use Mutex instead of GMutexMax Kellermann1-2/+4
2013-04-17output: convert to C++Max Kellermann1-20/+3
2013-04-16MixerInternal: convert to classMax Kellermann1-0/+4
2013-04-09pcm_*: move to src/pcm/Max Kellermann1-1/+1
2013-02-02FilterInternal: convert struct filter to a OO interfaceMax Kellermann1-4/+10
2013-01-15output_internal, ...: add extern "C"Max Kellermann1-0/+8
2012-09-25output: new option "tags" may be used to disable sending tagsMax Kellermann1-0/+7
Implements Mantis ticket 0003340.
2011-09-19output_plugin: the plugin allocates the audio_output objectMax Kellermann1-7/+16
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_thread: reimplement CANCEL synchronizationMax Kellermann1-0/+9
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-0/+3
.. and destruct the output object properly in test/run_output.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-0/+6
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-11-04output_internal: protect attribute "fail_timer" with mutexMax Kellermann1-1/+2
2010-05-02output_thread: call replay gain filter manuallyMax Kellermann1-0/+13
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/+6
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-0/+6
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.
2010-02-17replay_gain: reimplement as a filter pluginMax Kellermann1-0/+12
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.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-09output_thread: added command DRAINMax Kellermann1-0/+7
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-29output: consistently lock audio output objectsMax Kellermann1-6/+8
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-0/+8
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-21output: convert config_audio_format to an audio_format structMax Kellermann1-6/+5
This allows more sophisticated audio format selection.