aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/winmm_mixer_plugin.c
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2011-02-04 10:39:21 +0100
committerMax Kellermann <max@duempel.org>2011-02-09 22:42:31 +0100
commit948b8f35e6fc578c85a0cfc8e143e1325ce99043 (patch)
tree022148bcb71a123f151d05b5936bc66ca35d332a /src/mixer/winmm_mixer_plugin.c
parente776c605adeb984aae290cdff38c5f8dd0cd291e (diff)
downloadmpd-948b8f35e6fc578c85a0cfc8e143e1325ce99043.tar.gz
mpd-948b8f35e6fc578c85a0cfc8e143e1325ce99043.tar.xz
mpd-948b8f35e6fc578c85a0cfc8e143e1325ce99043.zip
general: whitespace cleanup
Remove trailing whitespace found by this command: find -name '*.[ch]' | xargs grep "[[:space:]]$"
Diffstat (limited to 'src/mixer/winmm_mixer_plugin.c')
-rw-r--r--src/mixer/winmm_mixer_plugin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mixer/winmm_mixer_plugin.c b/src/mixer/winmm_mixer_plugin.c
index e1e8a7a45..5ab3e7525 100644
--- a/src/mixer/winmm_mixer_plugin.c
+++ b/src/mixer/winmm_mixer_plugin.c
@@ -58,11 +58,11 @@ winmm_mixer_init(void *ao, G_GNUC_UNUSED const struct config_param *param,
G_GNUC_UNUSED GError **error_r)
{
assert(ao != NULL);
-
+
struct winmm_mixer *wm = g_new(struct winmm_mixer, 1);
mixer_init(&wm->base, &winmm_mixer_plugin);
wm->output = (struct winmm_output *) ao;
-
+
return &wm->base;
}
@@ -79,13 +79,13 @@ winmm_mixer_get_volume(struct mixer *mixer, GError **error_r)
DWORD volume;
HWAVEOUT handle = winmm_output_get_handle(wm->output);
MMRESULT result = waveOutGetVolume(handle, &volume);
-
+
if (result != MMSYSERR_NOERROR) {
g_set_error(error_r, 0, winmm_mixer_quark(),
"Failed to get winmm volume");
return -1;
}
-
+
return winmm_volume_decode(volume);
}
@@ -102,7 +102,7 @@ winmm_mixer_set_volume(struct mixer *mixer, unsigned volume, GError **error_r)
"Failed to set winmm volume");
return false;
}
-
+
return true;
}