filter/volume: support 32 bit samples
The pcm_volume library supports 32 bit samples, there's no reason to disallow it in the filter plugin.
This commit is contained in:
parent
bd29f7e3c8
commit
d2051c7f50
@ -75,14 +75,6 @@ volume_filter_open(struct filter *_filter,
|
|||||||
{
|
{
|
||||||
struct volume_filter *filter = (struct volume_filter *)_filter;
|
struct volume_filter *filter = (struct volume_filter *)_filter;
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (audio_format->reverse_endian) {
|
if (audio_format->reverse_endian) {
|
||||||
g_set_error(error_r, volume_quark(), 0,
|
g_set_error(error_r, volume_quark(), 0,
|
||||||
"Software volume for reverse endian "
|
"Software volume for reverse endian "
|
||||||
|
Loading…
Reference in New Issue
Block a user