filter/volume: check the flag audio_format.reverse_endian

The volume plugin does not work for reverse_endian samples.
This commit is contained in:
Max Kellermann 2009-07-22 15:56:50 +02:00
parent 44c97a8f6d
commit 9277950441

View File

@ -81,6 +81,13 @@ volume_filter_open(struct filter *_filter,
return false;
}
if (audio_format->reverse_endian) {
g_set_error(error_r, volume_quark(), 0,
"Software volume for reverse endian "
"samples is not implemented");
return false;
}
filter->audio_format = *audio_format;
pcm_buffer_init(&filter->buffer);