Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-02-06 | mixer/Plugin: pass AudioOutput reference to init() | Max Kellermann | 1 | -1/+1 | |
Passing a void pointer is unsafe. | |||||
2014-02-06 | MixerPlugin: convert function pointers to Mixer virtual methods | Max Kellermann | 1 | -50/+9 | |
2014-02-05 | Mixer: rename struct mixer_plugin to MixerPlugin | Max Kellermann | 1 | -1/+1 | |
2014-02-05 | MixerPlugin: add EventLoop& init() parameter | Max Kellermann | 1 | -1/+2 | |
2014-01-24 | Mixer*: move to mixer/ | Max Kellermann | 1 | -1/+1 | |
2014-01-24 | Config*: move to config/ | Max Kellermann | 1 | -1/+1 | |
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2013-11-28 | include cleanup using iwyu | Max Kellermann | 1 | -3/+1 | |
2013-10-21 | Util/ASCII: add StringEqualsCaseASCII() overload with length | Max Kellermann | 1 | -3/+2 | |
Replaces GLib's g_ascii_strncasecmp(). | |||||
2013-10-02 | Log: new logging library API | Max Kellermann | 1 | -2/+4 | |
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 1 | -43/+29 | |
Replaces GLib's GError. | |||||
2013-08-07 | Makefile.am: move sources to libsystem.a | Max Kellermann | 1 | -1/+1 | |
2013-08-04 | *: use gcc.h macros instead of GLib | Max Kellermann | 1 | -1/+1 | |
2013-08-04 | MixerPlugin: pass config_param reference | Max Kellermann | 1 | -5/+5 | |
2013-07-30 | tag: convert to C++ | Max Kellermann | 1 | -0/+1 | |
2013-07-30 | output_api: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-04-16 | MixerInternal: convert to class | Max Kellermann | 1 | -10/+8 | |
2013-04-16 | mixer/Oss: convert to a class | Max Kellermann | 1 | -51/+92 | |
2013-02-22 | mixer_plugin: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-01-29 | output/{alsa,oss}: convert to C++ | Max Kellermann | 1 | -8/+8 | |
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-11-12 | include config.h in all sources | Max Kellermann | 1 | -0/+1 | |
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue. | |||||
2009-11-10 | fd_util: removed creat_cloexec() | Max Kellermann | 1 | -1/+1 | |
Add a "mode" argument to open_cloexec() instead. | |||||
2009-11-07 | set the close-on-exec flag on all file descriptors | Max Kellermann | 1 | -1/+2 | |
Added the "fd_util" library, which attempts to use the new thread-safe Linux system calls pipe2(), accept4() and the options O_CLOEXEC, SOCK_CLOEXEC. Without these, it falls back to FD_CLOEXEC, which is not thread safe. This is particularly important for the "pipe" output plugin (and others, such as JACK/PulseAudio), because we were heavily leaking file descriptors to child processes. | |||||
2009-10-21 | mixer_plugin: pass audio_output pointer to mixer_plugin.init() | Max Kellermann | 1 | -1/+2 | |
This allows the mixer object to access its associated audio output object. | |||||
2009-10-20 | mixer_plugin: use GError for error handling | Max Kellermann | 1 | -12/+30 | |
2009-10-20 | mixer/{oss,alsa}: renamed the mixer source files | Max Kellermann | 1 | -4/+4 | |
2009-03-27 | mixer: assert that the new volume value is valid | Max Kellermann | 1 | -3/+1 | |
Added an assertion in mixer_set_volume(). Removed the range checks from the ALSA and OSS plugins. | |||||
2009-03-26 | oss_mixer: call oss_find_mixer() in init() method | Max Kellermann | 1 | -25/+26 | |
Detect misconfiguration during MPD startup. | |||||
2009-03-26 | oss_mixer: removed superfluous checks | Max Kellermann | 1 | -8/+8 | |
The MPD core guarantees that methods are always invoked in a consistent state. This means we can remove lots of checks from the volume methods. | |||||
2009-03-26 | oss_mixer: use g_ascii_strncasecmp() instead of strncasecmp() | Max Kellermann | 1 | -1/+1 | |
strncasecmp() is locale dependent, but we only need ASCII here. | |||||
2009-03-26 | oss_mixer: pass default path to config_get_block_string() | Max Kellermann | 1 | -8/+5 | |
Instead of replacing NULL with the default path in the open() method, pass the default path to config_get_block_string(). | |||||
2009-03-26 | oss_mixer: make "device" and "control" const | Max Kellermann | 1 | -6/+5 | |
Use config_get_block_string() instead of config_dup_block_string(). | |||||
2009-03-26 | mixer_control: close mixer on failure | Max Kellermann | 1 | -2/+0 | |
When getting or setting the volume fails, the MPD core close the mixer. Moved the duplicated code from the mixer plugins. | |||||
2009-03-26 | mixer: added flag "open" | Max Kellermann | 1 | -0/+1 | |
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-13 | all: Update copyright header. | Avuton Olrich | 1 | -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-16 | mixer_api: replaced method "control()" with "{get,set}_volume()" | Max Kellermann | 1 | -53/+43 | |
The method control() is too complicated, and overengineered. Replace it with two trivial functions: get_volume() and set_volume(). | |||||
2009-01-25 | mixer_api: removed struct mixer_data | Max Kellermann | 1 | -7/+12 | |
The mixer plugins should re-use the mixer struct and incorporate it in their object class. | |||||
2009-01-25 | mixer: merged methods "init" and "configure" | Max Kellermann | 1 | -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-25 | mixer: removed mixer_configure_legacy(), AC_MIXER_CONFIGURE | Max Kellermann | 1 | -6/+0 | |
Those have been superseded by the new legacy configuration code. | |||||
2009-01-25 | mixer: make all mixer_plugin pointers const | Max Kellermann | 1 | -1/+1 | |
The plugin structures must never be modified. | |||||
2009-01-25 | mixer: added missing copyright headers | Max Kellermann | 1 | -0/+17 | |
2009-01-25 | conf: allow param==NULL | Max Kellermann | 1 | -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-25 | conf: const pointers in block get functions | Max Kellermann | 1 | -2/+2 | |
All config_get_block_*() functions should accept constant config_param pointers. | |||||
2009-01-18 | conf: added config_get_block_string() | Max Kellermann | 1 | -7/+7 | |
This replaces lots of getBlockParam() invocations. | |||||
2009-01-18 | mixer: don't check for NULL before g_free() | Max Kellermann | 1 | -8/+6 | |
The g_free() function includes a NULL check. We don't have to do it twice. | |||||
2009-01-17 | conf: no CamelCase, part I | Max Kellermann | 1 | -3/+3 | |
Renamed functions, types, variables. | |||||
2009-01-16 | mixer: check param==NULL in the alsa and oss mixer code | Max Kellermann | 1 | -0/+4 | |
When MPD starts without audio output configuration, the "param" variable is NULL. This triggers a segmentation fault in both mixer plugins. | |||||
2009-01-11 | removing mixer_reconfigure memmory leak, fixing configure of alsa and oss ↵ | Viliam Mateicka | 1 | -4/+12 | |
mixer (passing parameters) |