Commit e977ec92 authored by Max Kellermann's avatar Max Kellermann

pcm_volume: remove "default" statement

Don't suppress gcc warnings.
parent b7d5652b
...@@ -151,6 +151,11 @@ pcm_volume(void *buffer, size_t length, ...@@ -151,6 +151,11 @@ pcm_volume(void *buffer, size_t length,
} }
switch (format) { switch (format) {
case SAMPLE_FORMAT_UNDEFINED:
case SAMPLE_FORMAT_S24:
/* not implemented */
return false;
case SAMPLE_FORMAT_S8: case SAMPLE_FORMAT_S8:
pcm_volume_change_8((int8_t *)buffer, length, volume); pcm_volume_change_8((int8_t *)buffer, length, volume);
return true; return true;
...@@ -169,8 +174,9 @@ pcm_volume(void *buffer, size_t length, ...@@ -169,8 +174,9 @@ pcm_volume(void *buffer, size_t length,
pcm_volume_change_32((int32_t*)buffer, length / 4, pcm_volume_change_32((int32_t*)buffer, length / 4,
volume); volume);
return true; return true;
default:
return false;
} }
/* unreachable */
assert(false);
return false;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment