aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}