pcm/PcmFormat: eliminate more duplicate code with templates

Refactor the conversion functions to classes and pass an instance to
the new function AllocateConvert().
This commit is contained in:
Max Kellermann
2014-03-14 09:21:56 +01:00
parent 044134eba0
commit 08e6cf3dd2
4 changed files with 235 additions and 122 deletions
+2
View File
@@ -450,6 +450,8 @@ libpcm_a_SOURCES = \
src/pcm/PcmChannels.cxx src/pcm/PcmChannels.hxx \
src/pcm/PcmPack.cxx src/pcm/PcmPack.hxx \
src/pcm/PcmFormat.cxx src/pcm/PcmFormat.hxx \
src/pcm/FloatConvert.hxx \
src/pcm/ShiftConvert.hxx \
src/pcm/FormatConverter.cxx src/pcm/FormatConverter.hxx \
src/pcm/ChannelsConverter.cxx src/pcm/ChannelsConverter.hxx \
src/pcm/Resampler.hxx \