filter/volume: remove from filter_plugins[]
Thsi filter doesn't make sense as manually configured plugin, because nobody ever calls volume_filter_set() on it, making it a no-op.
This commit is contained in:
parent
b335ac4156
commit
0e3ff12dd3
@ -27,7 +27,6 @@ static const FilterPlugin *const filter_plugins[] = {
|
|||||||
&null_filter_plugin,
|
&null_filter_plugin,
|
||||||
&route_filter_plugin,
|
&route_filter_plugin,
|
||||||
&normalize_filter_plugin,
|
&normalize_filter_plugin,
|
||||||
&volume_filter_plugin,
|
|
||||||
nullptr,
|
nullptr,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ struct FilterPlugin;
|
|||||||
extern const FilterPlugin null_filter_plugin;
|
extern const FilterPlugin null_filter_plugin;
|
||||||
extern const FilterPlugin route_filter_plugin;
|
extern const FilterPlugin route_filter_plugin;
|
||||||
extern const FilterPlugin normalize_filter_plugin;
|
extern const FilterPlugin normalize_filter_plugin;
|
||||||
extern const FilterPlugin volume_filter_plugin;
|
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
const FilterPlugin *
|
const FilterPlugin *
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "VolumeFilterPlugin.hxx"
|
#include "VolumeFilterPlugin.hxx"
|
||||||
#include "filter/FilterPlugin.hxx"
|
|
||||||
#include "filter/FilterInternal.hxx"
|
#include "filter/FilterInternal.hxx"
|
||||||
#include "filter/FilterRegistry.hxx"
|
|
||||||
#include "pcm/Volume.hxx"
|
#include "pcm/Volume.hxx"
|
||||||
#include "AudioFormat.hxx"
|
#include "AudioFormat.hxx"
|
||||||
#include "util/ConstBuffer.hxx"
|
#include "util/ConstBuffer.hxx"
|
||||||
@ -55,12 +53,6 @@ public:
|
|||||||
Filter *Open(AudioFormat &af) override;
|
Filter *Open(AudioFormat &af) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
static PreparedFilter *
|
|
||||||
volume_filter_init(gcc_unused const ConfigBlock &block)
|
|
||||||
{
|
|
||||||
return new PreparedVolumeFilter();
|
|
||||||
}
|
|
||||||
|
|
||||||
Filter *
|
Filter *
|
||||||
PreparedVolumeFilter::Open(AudioFormat &audio_format)
|
PreparedVolumeFilter::Open(AudioFormat &audio_format)
|
||||||
{
|
{
|
||||||
@ -73,11 +65,6 @@ VolumeFilter::FilterPCM(ConstBuffer<void> src)
|
|||||||
return pv.Apply(src);
|
return pv.Apply(src);
|
||||||
}
|
}
|
||||||
|
|
||||||
const FilterPlugin volume_filter_plugin = {
|
|
||||||
"volume",
|
|
||||||
volume_filter_init,
|
|
||||||
};
|
|
||||||
|
|
||||||
PreparedFilter *
|
PreparedFilter *
|
||||||
volume_filter_prepare() noexcept
|
volume_filter_prepare() noexcept
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user