aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/software_mixer_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-23 09:15:51 +0200
committerMax Kellermann <max@duempel.org>2009-10-23 09:15:51 +0200
commitede828c910f546dfe8ca4b07b678e9a2806c6889 (patch)
treed64ebd0c846f87908fc7531b5503f6b5d88b635a /src/mixer/software_mixer_plugin.c
parent7dd172efecca315cb5dcbf2e27d06f6a72d361d1 (diff)
downloadmpd-ede828c910f546dfe8ca4b07b678e9a2806c6889.tar.gz
mpd-ede828c910f546dfe8ca4b07b678e9a2806c6889.tar.xz
mpd-ede828c910f546dfe8ca4b07b678e9a2806c6889.zip
mixer_control: allow methods "open" and "close" to be NULL
It's possible to have a mixer implementation which does not explicitly need the methods open() and close().
Diffstat (limited to '')
-rw-r--r--src/mixer/software_mixer_plugin.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mixer/software_mixer_plugin.c b/src/mixer/software_mixer_plugin.c
index 2fcacd46d..062b9b3ef 100644
--- a/src/mixer/software_mixer_plugin.c
+++ b/src/mixer/software_mixer_plugin.c
@@ -61,23 +61,6 @@ software_mixer_finish(struct mixer *data)
g_free(sm);
}
-static bool
-software_mixer_open(struct mixer *data, G_GNUC_UNUSED GError **error_r)
-{
- struct software_mixer *sm = (struct software_mixer *)data;
-
- (void)sm;
- return true;
-}
-
-static void
-software_mixer_close(struct mixer *data)
-{
- struct software_mixer *sm = (struct software_mixer *)data;
-
- (void)sm;
-}
-
static int
software_mixer_get_volume(struct mixer *mixer, G_GNUC_UNUSED GError **error_r)
{
@@ -109,8 +92,6 @@ software_mixer_set_volume(struct mixer *mixer, unsigned volume,
const struct mixer_plugin software_mixer_plugin = {
.init = software_mixer_init,
.finish = software_mixer_finish,
- .open = software_mixer_open,
- .close = software_mixer_close,
.get_volume = software_mixer_get_volume,
.set_volume = software_mixer_set_volume,
.global = true,