aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/OutputPlugin.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-10-19*: use nullptr instead of NULLMax Kellermann1-12/+4
2013-10-15gcc.h: rename to Compiler.hMax Kellermann1-1/+1
2013-09-04util/Error: new error passing libraryMax Kellermann1-9/+9
Replaces GLib's GError.
2013-08-04OutputPlugin: pass config_param referenceMax Kellermann1-2/+2
2013-08-03audio_format: convert to C++Max Kellermann1-3/+3
2013-07-30tag: convert to C++Max Kellermann1-3/+3
2013-07-30include cleanupMax Kellermann1-1/+0
2013-04-17output: convert to C++Max Kellermann1-11/+3
2013-01-30{encoder,output}_api.h: allow compiling as C++Max Kellermann1-0/+8
2012-08-02gcc.h: re-add gcc_const and gcc_pureMax Kellermann1-4/+3
Remove GLib dependency from some headers.
2012-08-02DatabaseVisitor, ...: use GError forward declarationMax Kellermann1-0/+2
2011-09-19output_plugin: the plugin allocates the audio_output objectMax Kellermann1-93/+42
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-03-31fix common misspellingsJonathan Neuschäfer1-4/+4
These fixes were mostly generated with `codespell' [0] and manually reviewed. [0] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-11-05output_plugin: add method delay()Max Kellermann1-0/+18
This method is used to reduce the delay of commands issued to the shout plugin.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-10-29output_plugin: added method "drain"Max Kellermann1-0/+12
drain() is the opposite of cancel(): it waits until all data in the buffer has finished playing. Instead of implicitly draining in the close() method like the ALSA plugin has been doing it forever, let the output thread decide whether to drain or to cancel.
2009-10-23output_plugin: added methods enable() and disable()Max Kellermann1-0/+34
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-03-26output_plugin: replaced output_plugin.get_mixer() with mixer_pluginMax Kellermann1-17/+8
The mixer core library is now responsible for creating and managing the mixer object. This removes duplicated code from the output plugins.
2009-03-13all: Update copyright header.Avuton Olrich1-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.
2009-02-26output_plugin: report errors with GErrorMax Kellermann1-10/+24
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.
2009-02-25output_plugin: don't pass audio_output object to method init()Max Kellermann1-5/+2
audio_output_get_name() has been removed, which was the only function left in output_api.h. The output plugin doesn't need the audio_output object at all, remove the parameter from the init() method.
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-23output_api: play() returns a lengthMax Kellermann1-2/+4
The old API required an output plugin to not return until all data passed to the play() method is consumed. Some output plugins have to loop to fulfill that requirement, and may block during that. Simplify these, by letting them consume only part of the buffer: make play() return the length of the consumed data.
2009-02-16output_plugin: replaced method "control()" with "mixer()"Max Kellermann1-6/+17
The output plugin shouldn't know any specifics of the mixer API. Make it return the mixer object, and let the caller deal with it.
2009-02-16output_plugin: added inline wrapper functionsMax Kellermann1-0/+66
Similar to the decoder plugin API: added wrapper functions to increase code readability.
2009-02-16output_plugin: reorder method declarationsMax Kellermann1-17/+17
Initialization and deinitialization first, then tag functions, then play/cancel/pause.
2009-02-16output_api: moved "struct audio_output_plugin" to output_plugin.hMax Kellermann1-20/+9
If we move the plugin struct to a separate header, we don't have to include the big fat output_api.h everywhere.
2009-02-16output_api: moved "enum output_command" to output_internal.hMax Kellermann1-11/+0
Now that the output_command enum isn't exposed to output plugins anymore, we can hide its definition within output_internal.h.
2009-02-09output_api: include "config.h" without "../"Max Kellermann1-1/+1
Including "../config.h" breaks on some systems.
2009-01-30output_api: moved the command check out of method pause()Max Kellermann1-6/+4
Move the "while" loop which checks for commands to the caller ao_pause(). This simplifies the pause() method, and lets us remove audio_output_is_pending().
2009-01-30output_api: removed DISABLED_AUDIO_OUTPUT_PLUGINMax Kellermann1-2/+0
The macro is unused.
2009-01-30output_api: removed audio_output_closed()Max Kellermann1-2/+0
The function is only used by the MVP output plugin, and this one call is wrong.
2009-01-25mixer: removed mixer_configure_legacy(), AC_MIXER_CONFIGUREMax Kellermann1-1/+0
Those have been superseded by the new legacy configuration code.
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-17conf: no CamelCase, part IMax Kellermann1-1/+1
Renamed functions, types, variables.
2008-12-31Moving mixers to audio outputsViliam Mateicka1-0/+12
2008-11-25output: use GLib instead of log.h/util.hMax Kellermann1-1/+0
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: use bool for return values and flagsMax Kellermann1-3/+3
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/+0
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-09-29audio_output: added method pause()Max Kellermann1-0/+11
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-29audio_output: added function audio_output_is_pending()Max Kellermann1-0/+7
The function audio_output_is_pending() returns whether there is a pending command. This is useful for output plugins as a break condition for longer loops.
2008-09-24output: document the audio_output_plugin methodsMax Kellermann1-0/+44
2008-09-24output: make "struct audio_output" opaque for output pluginsMax Kellermann1-44/+10
We have eliminated direct accesses to the audio_output struct from the all output plugins. Make it opaque for them, and move its real declaration to output_internal.h, similar to decoder_internal.h. Pass the opaque structure to plugin.init() only, which will return the plugin's data pointer on success, and NULL on failure. This data pointer will be passed to all other methods instead of the audio_output struct.
2008-09-24output: added audio_output_closed()Max Kellermann1-0/+2
The JACK output plugin needs to reset its "opened" flag when the JACK server fails. To prevent it from accessing the audio_output struct directly introduce the API function audio_output_closed().
2008-09-24output: added audio_output_get_name()Max Kellermann1-0/+2
Reduce direct accesses to the audio_output struct from the plugins: this time, eliminate all accesses to audio_output.name. The name is required by some plugins for log messages.
2008-09-24output: pass audio_format to plugin.init() and plugin.open()Max Kellermann1-2/+5
Pass the globally configured audio_format as a const pointer to plugin.init(). plugin.open() gets a writable pointer which contains the audio_format requested by the plugin. Its initial value is either the configured audio_format or the input file's audio_format.