aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-20 02:21:12 +0200
committerMax Kellermann <max@duempel.org>2011-10-20 02:24:25 +0200
commite977ec924c1222e4ce55568e4f58259f04c763a7 (patch)
treeac39cea24388d7ed49379e2e4309a6854fe308d9
parentb7d5652bf63c2885588ad61b5f44b164627bb5a6 (diff)
downloadmpd-e977ec924c1222e4ce55568e4f58259f04c763a7.tar.gz
mpd-e977ec924c1222e4ce55568e4f58259f04c763a7.tar.xz
mpd-e977ec924c1222e4ce55568e4f58259f04c763a7.zip
pcm_volume: remove "default" statement
Don't suppress gcc warnings.
-rw-r--r--src/pcm_volume.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/pcm_volume.c b/src/pcm_volume.c
index dd5f6f90c..fd62c14c1 100644
--- a/src/pcm_volume.c
+++ b/src/pcm_volume.c
@@ -151,6 +151,11 @@ pcm_volume(void *buffer, size_t length,
}
switch (format) {
+ case SAMPLE_FORMAT_UNDEFINED:
+ case SAMPLE_FORMAT_S24:
+ /* not implemented */
+ return false;
+
case SAMPLE_FORMAT_S8:
pcm_volume_change_8((int8_t *)buffer, length, volume);
return true;
@@ -169,8 +174,9 @@ pcm_volume(void *buffer, size_t length,
pcm_volume_change_32((int32_t*)buffer, length / 4,
volume);
return true;
-
- default:
- return false;
}
+
+ /* unreachable */
+ assert(false);
+ return false;
}