aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/MixerPlugin.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-02-19Mixer: add class MixerListenerMax Kellermann1-0/+2
Use a listener interface instead of GlobalEvents.
2014-02-06mixer/Plugin: pass AudioOutput reference to init()Max Kellermann1-2/+3
Passing a void pointer is unsafe.
2014-02-06MixerPlugin: convert function pointers to Mixer virtual methodsMax Kellermann1-40/+0
2014-02-05Mixer: rename struct mixer_plugin to MixerPluginMax Kellermann1-1/+1
2014-02-05MixerPlugin: add EventLoop& init() parameterMax Kellermann1-1/+3
2014-01-28OutputPlugin: rename struct audio_output_plugin to AudioOutputPluginMax Kellermann1-1/+1
2014-01-24Mixer*: move to mixer/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-10-19*: use nullptr instead of NULLMax Kellermann1-5/+5
2013-09-04util/Error: new error passing libraryMax Kellermann1-7/+6
Replaces GLib's GError.
2013-08-04MixerPlugin: pass config_param referenceMax Kellermann1-3/+2
2013-07-30include cleanupMax Kellermann1-2/+0
2013-04-16MixerInternal: convert to classMax Kellermann1-8/+8
2013-02-22mixer_plugin: convert to C++Max Kellermann1-4/+4
2012-08-02DatabaseVisitor, ...: use GError forward declarationMax Kellermann1-1/+1
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
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-10-23mixer_plugin: get_volume() may return -1 if unavailableMax Kellermann1-2/+2
If the method get_volume() returns -1 and no error object is set, then the volume is currently unavailable, but the mixer should not be closed immediately.
2009-10-21mixer_plugin: pass audio_output pointer to mixer_plugin.init()Max Kellermann1-1/+4
This allows the mixer object to access its associated audio output object.
2009-10-20mixer_plugin: use GError for error handlingMax Kellermann1-5/+21
2009-03-26mixer: added flag "open"Max Kellermann1-0/+7
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.
2009-03-14mixer_api: moved struct mixer_plugin to mixer_plugin.hMax Kellermann1-49/+16
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-03-07pulse mixerDavid Guibert1-0/+1
This patch introduces the mixer for the pulse output. Technically speaking, the pulse index is needed to get or set the volume. You must define callback fonctions to get this index since the pulse output in mpd is done using the simpe api. The pulse simple api does not provide the index of the newly defined output. So callback fonctions are associated to the pulse context. The list of all the sink input is then retreived. Then we select the name of the mpd pulse output and control its volume by its associated index number. Signed-off-by: Patrice Linel <patnathanael@gmail.com> Signed-off-by: David Guibert <david.guibert@gmail.com> [mk: fixed whitespace errors and broke long lines; removed daemonization changes from main.c]
2009-03-02mixer: adding code to optionally disable all hw mixersViliam Mateicka1-0/+2
2009-02-16mixer: include cleanupMax Kellermann1-1/+3
Don't include conf.h in mixer_api.h. Use a forward struct declaration instead.
2009-02-16mixer_api: replaced method "control()" with "{get,set}_volume()"Max Kellermann1-6/+28
The method control() is too complicated, and overengineered. Replace it with two trivial functions: get_volume() and set_volume().
2009-01-25mixer_api: removed struct mixer_dataMax Kellermann1-9/+10
The mixer plugins should re-use the mixer struct and incorporate it in their object class.
2009-01-25mixer: merged methods "init" and "configure"Max Kellermann1-11/+3
Both methods are always called together. There is no point in having them separate. This simplifies the code, because the old configure() method could be called more than once, and had to free old allocations.
2009-01-25mixer: removed mixer_configure(), configure mixer in mixer_new()Max Kellermann1-2/+1
Allocate the mixer object when it is configured. Merged mixer_configure() into mixer_new(). mixer_new() was quite useless anyway.
2009-01-25mixer: return a mixer struct pointerMax Kellermann1-0/+7
Don't use statically allocated mixer objects.
2009-01-25mixer: make all mixer_plugin pointers constMax Kellermann1-4/+4
The plugin structures must never be modified.
2009-01-25mixer: added missing copyright headersMax Kellermann1-0/+17
2009-01-25conf: const pointers in block get functionsMax Kellermann1-2/+3
All config_get_block_*() functions should accept constant config_param pointers.
2009-01-17conf: no CamelCase, part IMax Kellermann1-2/+2
Renamed functions, types, variables.
2009-01-10Introducing mixer apiViliam Mateicka1-23/+51
This patch tryes to introduce pluggable mixer (struct mixer_plugin) along with some basic infrastructure (mixer_* functions). Instance of mixer (struct mixer) is used in alsa and oss output plugin
2009-01-04renaming mixer.h to mixer_api.hViliam Mateicka1-0/+0
2008-12-31Moving mixers to audio outputsViliam Mateicka1-0/+33