diff options
Diffstat (limited to 'src/pcm_volume.c')
-rw-r--r-- | src/pcm_volume.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pcm_volume.c b/src/pcm_volume.c index 90ad17d6d..acb6c41a8 100644 --- a/src/pcm_volume.c +++ b/src/pcm_volume.c @@ -150,17 +150,17 @@ pcm_volume(void *buffer, int length, return true; } - switch (format->bits) { - case 8: + switch (format->format) { + case SAMPLE_FORMAT_S8: pcm_volume_change_8((int8_t *)buffer, length, volume); return true; - case 16: + case SAMPLE_FORMAT_S16: pcm_volume_change_16((int16_t *)buffer, length / 2, volume); return true; - case 24: + case SAMPLE_FORMAT_S24_P32: pcm_volume_change_24((int32_t*)buffer, length / 4, volume); return true; |