aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/alsa_mixer.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-02-16mixer_api: replaced method "control()" with "{get,set}_volume()"Max Kellermann1-71/+73
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-7/+12
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-23/+6
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_legacy(), AC_MIXER_CONFIGUREMax Kellermann1-5/+0
Those have been superseded by the new legacy configuration code.
2009-01-25mixer: make all mixer_plugin pointers constMax Kellermann1-1/+1
The plugin structures must never be modified.
2009-01-25mixer: added missing copyright headersMax Kellermann1-0/+17
2009-01-25conf: allow param==NULLMax Kellermann1-3/+0
Return the default value in the conf_get_block_*() functions when param==NULL was passed. This simplifies a lot of code, because all initialization can be done in one code path, regardless whether configuration is present.
2009-01-25conf: const pointers in block get functionsMax Kellermann1-2/+2
All config_get_block_*() functions should accept constant config_param pointers.
2009-01-18conf: added config_get_block_string()Max Kellermann1-5/+8
This replaces lots of getBlockParam() invocations.
2009-01-18mixer: don't check for NULL before g_free()Max Kellermann1-8/+5
The g_free() function includes a NULL check. We don't have to do it twice.
2009-01-17conf: no CamelCase, part IMax Kellermann1-3/+3
Renamed functions, types, variables.
2009-01-16mixer: check param==NULL in the alsa and oss mixer codeMax Kellermann1-0/+3
When MPD starts without audio output configuration, the "param" variable is NULL. This triggers a segmentation fault in both mixer plugins.
2009-01-11removing mixer_reconfigure memmory leak, fixing configure of alsa and oss ↵Viliam Mateicka1-4/+14
mixer (passing parameters)
2009-01-10Introducing mixer apiViliam Mateicka1-23/+37
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-1/+1
2009-01-01mixer: renamed mix_* options to mixer_*Max Kellermann1-2/+2
There is no reason to use the shortcut "mix" instead of "mixer".
2008-12-31Moving mixers to audio outputsViliam Mateicka1-0/+206