diff options
Diffstat (limited to 'src/filter')
-rw-r--r-- | src/filter/volume_filter_plugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/filter/volume_filter_plugin.c b/src/filter/volume_filter_plugin.c index f6639a75f..285a4b7a4 100644 --- a/src/filter/volume_filter_plugin.c +++ b/src/filter/volume_filter_plugin.c @@ -75,8 +75,9 @@ volume_filter_open(struct filter *_filter, { struct volume_filter *filter = (struct volume_filter *)_filter; - if (audio_format->bits != 8 && audio_format->bits != 16 && - audio_format->bits != 24) { + if (audio_format->format != SAMPLE_FORMAT_S8 && + audio_format->format != SAMPLE_FORMAT_S16 && + audio_format->format != SAMPLE_FORMAT_S24_P32) { g_set_error(error_r, volume_quark(), 0, "Unsupported audio format"); return false; |