pcm/PcmResampler: convert to abstract interface

The PcmResampler interface is implemented by the two classes
FallbackPcmResampler and LibsampleratePcmResampler.  This prepares for
adding more resampler libraries.
This commit is contained in:
Max Kellermann
2013-11-11 22:31:46 +01:00
parent e9127523db
commit 5ba90cd8ea
18 changed files with 702 additions and 893 deletions

View File

@@ -41,12 +41,14 @@ class Domain;
class PcmConvert {
PcmDsd dsd;
GluePcmResampler resampler;
PcmFormatConverter format_converter;
PcmChannelsConverter channels_converter;
GluePcmResampler resampler;
AudioFormat src_format, dest_format;
bool enable_resampler, enable_format, enable_channels;
public:
PcmConvert();
~PcmConvert();