pcm/PcmConvert: move code to new class PcmChannelsConverter

This commit is contained in:
Max Kellermann
2013-11-30 13:19:07 +01:00
parent 0eefc7a43c
commit 92004f2e7e
5 changed files with 223 additions and 66 deletions

View File

@@ -24,6 +24,7 @@
#include "PcmResample.hxx"
#include "PcmBuffer.hxx"
#include "FormatConverter.hxx"
#include "ChannelsConverter.hxx"
#include "AudioFormat.hxx"
#include <stddef.h>
@@ -43,9 +44,7 @@ class PcmConvert {
PcmResampler resampler;
PcmFormatConverter format_converter;
/** the buffer for converting the channel count */
PcmBuffer channels_buffer;
PcmChannelsConverter channels_converter;
AudioFormat src_format, dest_format;